I keep getting an error when attempting to export an age which includes animation, clickable region etc. Log looks like this:
Log suggests the problem is that frm.vec[1][0] = frm.vec[0][0] and hence division by zero - causing the crash. But I have no idea what the frm.vec is about.
Any clues??
I'm using Blender 2.46, and PYPRP v1.5. Some other ages (including the DoorAnimation age) export fine.
Thanks
Ekimmai
Float Division error on Export
Re: Float Division error on Export
I believe I saw that error when I wrote an animation Alcscript for an object that did not have any IPO data yet. Are you referencing the right object in your Alcscript?
"It is in self-limitation that a master first shows himself." - Goethe
Re: Float Division error on Export
Yeh I'm pretty sure I've referenced everything correctly - having used the Door Animation program as a guide. I'll check again later though.
The log refers to "Exporting IPO WallOpen1", the latter being the name I gave to animation in the Alcscript relating to a dropping wall. Do I need to rename the IPO curve at all or will it just automatically look for the object connected to the animation and then find the IPO relating to the object?
The log refers to "Exporting IPO WallOpen1", the latter being the name I gave to animation in the Alcscript relating to a dropping wall. Do I need to rename the IPO curve at all or will it just automatically look for the object connected to the animation and then find the IPO relating to the object?

Re: Float Division error on Export

Fixed the problem!
I stripped out all the unnecessary IPO curves for my animations, e.g. energy curve for a light, rotational curves for an object which changes location only, and lo and behold everything worked perfectly first time. Cheers D'Lanor for pointing me in the right direction (IPO data).
Big thanks to the writer of the AnimatedDoor age - without which I would still be scratching my head.....
Ekimmai
-
- Posts: 1057
- Joined: Fri Sep 28, 2007 8:01 pm
- MOULa KI#: 23247
- Location: US (Eastern Time)
- Contact:
Re: Float Division error on Export
This would happen if the "in" beizer handle in a keyframe is completely vertical, or has "infinite slope", which I don't think is actually valid for any ipo curve.. I may have to have another look at what happens when there are unused curves. (it should ignore them and not create an animation)
Anyway, thanks, good to hear it helped you.
(I wrote the AnimatedDoor age, it was the test age for animations.)
Anyway, thanks, good to hear it helped you.

Re: Float Division error on Export
Well, it is possible to place points between frames, so if it is the case that the frame numbers are rounded before the division in question and we have one point at frame one and one at frame 1.42...
(Holding down ctrl while moving points snaps them to the grid [in this case; frame number], in the IPO editor, just as in views -- good to keep in mind.. :7)
EDIT: ...or rather "moves the points grid-size distances", not actual snapping...
(Holding down ctrl while moving points snaps them to the grid [in this case; frame number], in the IPO editor, just as in views -- good to keep in mind.. :7)
EDIT: ...or rather "moves the points grid-size distances", not actual snapping...
-
- Posts: 12
- Joined: Mon Apr 06, 2009 11:57 pm
Re: Float Division error on Export
Hello,
I ran into the same error, but i dont have any animations in my age. I searched through the ipo editor but there are no ipo curves i could delete. The Age is not developed far by now. It only contains a Landscape Mesh and a Waveset Mesh, of course a sun...thats all. Might there be a other reason for this error to occure?
I ran into the same error, but i dont have any animations in my age. I searched through the ipo editor but there are no ipo curves i could delete. The Age is not developed far by now. It only contains a Landscape Mesh and a Waveset Mesh, of course a sun...thats all. Might there be a other reason for this error to occure?
Re: Float Division error on Export
You DO have an IPO curve somewhere, it seems. :) Accidently pressing the "I" key at any time, would add a key to a curve, that would automagically be created, if not already present.
There are IPOs for many different targets, though (selector in the toolbar; Object, World, Material, Pose, etc...) and an editor window will only display one of these at the time, so you may not have flicked through all of these, when checking.
Try looking in the outliner - an IPO block attached to any other block, will appear as a small pictogram of a squiggly arrow, which can be selected and deleted.
There are IPOs for many different targets, though (selector in the toolbar; Object, World, Material, Pose, etc...) and an editor window will only display one of these at the time, so you may not have flicked through all of these, when checking.
Try looking in the outliner - an IPO block attached to any other block, will appear as a small pictogram of a squiggly arrow, which can be selected and deleted.
Re: Float Division error on Export
It is a layer animation so you should look for a Material IPO.
"It is in self-limitation that a master first shows himself." - Goethe