General Category > Anim8or v0.98 Discussion Forum

Anim8or corrupting files

<< < (3/3)

Raxx:
If the Anim8or Scripting Language allowed for spline manipulation, I'd have made you a tool to reset all of the Z-Coords to 0 already. Otherwise some fancy RegEx in Notepad++ could fix your problem automatically, if you want to go the route of editing the .an8 file after each modification.

Now, this may be a foolish observation, but it seems that if you correct a problematic Z-Coord in the .an8 file, save it, and edit it, there's less chance of the Z-Coords acting up again. I could be wrong.

Lastly, there is B_Twist's E_Track plugin (located in the ASL Database), where you can make the spline paths out of regular edges and points, but it's somewhat unpredictable with sharp corners.

----

Steve drops by the forum to clean up the spammer mess fairly often. My moderator powers are limited to post management, so I shove the ugliness into a corner until he can deal with the source of the problem. Whether he actively reads the posts of the users or not, I can't say.

As for his plans on updating Anim8or, he's certainly planning on it, and has done work for the next version. In order to add certain new features, he's having to completely reorganize the internal data structures, which is a fairly large task. He plans on moving the dialog boxes to sidebars similar to how most other 3D software handles it, auto mirroring, and a few other features I promised not to tell ;)

Steve doesn't have a lot of free time right now, so all we can really do is wait like we have been waiting, and hope Anim8or gets its due attention.

Gregory:
I've been going through the file in a text editor, manually setting the z to 0 and it seems to stay put.  It is awfully tedious but seems like the only way.

Edit:  after trying that I see there's no practical way to do that, it will take far longer than the model's worth.  I need to make each point only use three decimal places.  Setting Snap to Grid won't allow me to use .001 as it is the lowest value in the range, even though that would make sense for my metric scale.  

hmm...   brewing more coffee...


--- Quote from: Raxx on April 29, 2013, 11:15:49 pm ---If the Anim8or Scripting Language allowed for spline manipulation, I'd have made you a tool to reset all of the Z-Coords to 0 already. Otherwise some fancy RegEx in Notepad++ could fix your problem automatically, if you want to go the route of editing the .an8 file after each modification.

--- End quote ---

I'm using Notepad++ but I don't know what you mean there.


--- Quote from: Raxx on April 29, 2013, 11:15:49 pm ---
As for his plans on updating Anim8or, he's certainly planning on it, and has done work for the next version.
--- End quote ---

That's great news.


--- Quote from: Raxx on April 29, 2013, 11:15:49 pm --- He plans on moving the dialog boxes to sidebars similar to how most other 3D software handles it, auto mirroring, and a few other features...

--- End quote ---

None of those are necessary as far as I'm concerned.  In fact I like the dialog boxes.  One of the reasons I've continued with anim8or over the years instead of the other packages I've used is the simplicity.  All I would want is that the numbers behave consistently.

Raxx:
I'd say bug fixes are a given in any release, but there's no guarantee it'll be the bug(s) you want fixed.

Notepad++ has the search/replace feature where you can use regular expressions to find and replace strings based on patterns. This way you can just click a few buttons and it'll fix all of the splines in the .an8 file.

Here's the RegExp you search for:


--- Code: ---(knot \{ \([-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)? [-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?) ([-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?)

--- End code ---

and the code you replace:

--- Code: ---\1 0

--- End code ---

Should look like the attached file. It replaces all Z values in the first Point3 value of each Knot line in the .an8 file, since that seems to be where it's messing up. You can hit "Replace All" and it'll do it all in one go. It also keeps a history of your previous search/replace entries, so you probably don't have to commit it to memory :P

Navigation

[0] Message Index

[*] Previous page

Go to full version