No Bones Found ?

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 29/12/2004 at 07:53, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   9.012 
Platform:   Windows  ;   
Language(s) :     C++  ;

---------
Hi Again !

Our Exporter exports now the Vertices, UV Coordinates und Normals 🙂

But the Bone weren't export, i dont now why. He detect the Opolygon but not the Obone 😞

if(Obj->GetType() == Opolygon)
{
// Works
}

if(Obj->GetType() == Obone)
GePrint("Bone");
// Dont work

I put this two snippet in a while(Obj) and at the end of the While, I go to the next Obj (it works with Vertices und UV so there is no error).

I place some Cubes and Bones but he only export the Cubes, in the Cinema Consol there is not one entry called "Bone" 😞

Somebody can help ?

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 29/12/2004 at 07:58, xxxxxxxx wrote:

Have you tried Obj->IsInstanceOf(Obone)? I've not had any trouble using this method.

Robert

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 29/12/2004 at 08:06, xxxxxxxx wrote:

I tried this one, but i dont work again 😞

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 29/12/2004 at 08:13, xxxxxxxx wrote:

try obj->GetType()==5123

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 29/12/2004 at 09:56, xxxxxxxx wrote:

All that you are doing is replacing the #define Obone with its numerical definition:

#define Obone 5123

If that makes a difference, something smells fishy in Shveeden. 🙂

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 29/12/2004 at 10:01, xxxxxxxx wrote:

Upps, I thought he was using COFFEE and that the definition might have changed. But as he is using C++ this is of course nonsense 🙂

It should work then though. Have you checked the pointer if it´s valid? Cannot think of anything else.

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 29/12/2004 at 10:49, xxxxxxxx wrote:

Yes it is valid, otherwise i would get an exception 😞

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 29/12/2004 at 11:15, xxxxxxxx wrote:

That's alright Katachi. 🙂

I'm going out on a limb and wondering if you are getting to all of the objects in your document. Have you checked that you are at least traversing all of the scene objects regardless of type?

Robert

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 29/12/2004 at 11:22, xxxxxxxx wrote:

Yes im sure, he dont get the Bones, he find all other (Polygon, Nullobject etc) but Bones not 😞

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 29/12/2004 at 12:45, xxxxxxxx wrote:

So you are saying that if you do a full document object traversal, without worrying about object type, the bones still do not show up?

You are doing something like this:

  
// Print Document's object hierarcy  
void PrintHierarchy()  
{  
     BaseObject *obj = baseDoc->GetFirstObject();  
     for (obj = baseDoc->GetFirstObject(); obj; obj = obj->GetNext())  
     {  
          GePrint(obj->GetName());  
          PrintChildren(obj->GetDown(),1);  
     }  
}  
// Recursively print children  
void PrintChildren(BaseObject *obj, UBYTE level)  
{  
     String stext = "";  
     for (UBYTE i = 0; i < level; i++) stext = stext+" ";  
     for (; obj; obj = obj->GetNext())  
     {  
          GePrint(stext+obj->GetName());  
          PrintChildren(obj->GetDown(), level+1);  
     }  
}  

and none of the bone objects show up in the Console print out?

Robert

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 29/12/2004 at 13:23, xxxxxxxx wrote:

Oh now it shows, it must a bug in my routine 🙂 sorrys 🙂

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 29/12/2004 at 15:11, xxxxxxxx wrote:

No problem. It is always good to ask and get others' input. 🙂