OBJ Exporter IK Anim Bug Fix

Post Reply
froo
Captain
Posts: 2554
Joined: 22 May 2009, 12:13

OBJ Exporter IK Anim Bug Fix

Post by froo » 10 Aug 2009, 16:42

Many thanks to Rayman for reporting this bug.
There was a problem with animated IK rigged characters.
This bug has been resolved. I will be making a new build of the OBJ package shortly.
The screenshot below depicts Crazy Bob in a series of animated frames exported using the
updated OBJ Exporter.

I will be writing an article describing the solution at truespaceplugins.com soon, as well.
So if you are interested in plugin development that's the place to be. 8-)
Attachments
OBJAnimExportBob.PNG
OBJ IK Rig Animation Export

User avatar
RAYMAN
Captain
Posts: 2236
Joined: 21 May 2009, 18:56

Re: OBJ Exporter IK Anim Bug Fix

Post by RAYMAN » 11 Aug 2009, 09:30

Great ! I´m looking foreward to it !
Peter

froo
Captain
Posts: 2554
Joined: 22 May 2009, 12:13

Re: OBJ Exporter IK Anim Bug Fix

Post by froo » 14 Aug 2009, 17:24

thanks Rayman.
I added some error-checking functionality. I need to add a little more
which should cover another situation:

If you add a couple items to the scene, then delete them all, there is still a valid selection.
The data is removed from the *Scene*, but is still available in the Undo Stack.
If you then select the OBJ export icon and proceed to export, you still get the crash. Why?
Because the selection pointer is still valid, and the code tries to process that selection.
Since the selection is no longer in the scene, we get the crash.

The solution is to traverse the parent node path of the selection, until we hit the scene node (IRnScene).
If we traverse the whole path, without reaching the scene node, then the selection no longer exists
in the scene, so I then need to show an error window and abort gracefully (not crash! ) :D

So I will add that in.

User avatar
First Light
Senior Chief Petty Officer
Posts: 169
Joined: 22 May 2009, 11:17
Type the number ten into the box: 0
Location: Michigan, U.S.
Contact:

Re: OBJ Exporter IK Anim Bug Fix

Post by First Light » 14 Aug 2009, 18:16

@froo: Very clever! Your Obj Importer/Exporter is getting better and better. Way to go!!! :bananacool2:

froo
Captain
Posts: 2554
Joined: 22 May 2009, 12:13

Re: OBJ Exporter IK Anim Bug Fix

Post by froo » 14 Aug 2009, 18:53

Thanks First Light. I am adding as I go along, since we are discovering these issues
as we go along. When I get a chance I will write about it at truespaceplugins.com for
everyone interested in plugin development for truespace, or other apps. Similar types
of problems may be encountered in other apps, so this information may be useful to someone.
;)
Froo

Post Reply