Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Register
    • Login

    No Bones Found ?

    Scheduled Pinned Locked Moved SDK Help
    12 Posts 0 Posters 1.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      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 ?

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        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

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          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 😞

          1 Reply Last reply Reply Quote 0
          • H Offline
            Helper
            last edited by

            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

            1 Reply Last reply Reply Quote 0
            • H Offline
              Helper
              last edited by

              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. 🙂

              1 Reply Last reply Reply Quote 0
              • H Offline
                Helper
                last edited by

                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.

                1 Reply Last reply Reply Quote 0
                • H Offline
                  Helper
                  last edited by

                  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 😞

                  1 Reply Last reply Reply Quote 0
                  • H Offline
                    Helper
                    last edited by

                    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

                    1 Reply Last reply Reply Quote 0
                    • H Offline
                      Helper
                      last edited by

                      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 😞

                      1 Reply Last reply Reply Quote 0
                      • H Offline
                        Helper
                        last edited by

                        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

                        1 Reply Last reply Reply Quote 0
                        • H Offline
                          Helper
                          last edited by

                          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 🙂

                          1 Reply Last reply Reply Quote 0
                          • H Offline
                            Helper
                            last edited by

                            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. 🙂

                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post