THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 28/03/2009 at 04:15, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 11
Platform: Mac ; Mac OSX ;
Language(s) : C.O.F.F.E.E ;
---------
Hi All
I am trying to write an export script with C.O.F.F.E.E and want to walk the hierarchy and be able to tell that the object I have is a joint, and therefore part of a skeleton.
I am walking the scene with doc->GetFirstObject(); and subsequent GetNext() and GetDown() calls on the object but when I use getclass() I typically get BaseObject but nothing more useful. I see that OJoint and OBone can be allocated but I don't see a way to ask a BaseObject what type it is (or if there are any additional methods off an OJoint or OBone).
Does anyone know a way to do this with C.O.F.F.E.E. or do I need to look at a C++ plugin, or use some naming convention on a joint?
I imagine that knowing it is a joint is probably enough.
Cheers
Ian