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
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    IsInstanceOf() GetType()

    Scheduled Pinned Locked Moved SDK Help
    15 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 28/09/2007 at 11:06, xxxxxxxx wrote:

      did I mention I'm using R10? are you using C4D R10 on osx 10.4.10?
      this does not make sense at all.

      is not only the pyramid, in fact I'm having the same problem for other primitives like sphere, cube, cylinder, etc.

      > _
      > BaseObject *op=doc- >GetFirstObject();
      >      while (op){
      > LONG type = op->GetType();
      > GePrint(String( LongToString(type) ); // writes 5100
      >
      >           switch(type) {
      >                case Opolygon:
      >                     WritePolygonObject(file, op);
      >                break;
      >                case Ocylinder:
      >                     WriteCylinder(file, op);
      >                break;
      > }
      >
      > op = op->GetNext();
      > }
      > _

      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 28/09/2007 at 11:50, xxxxxxxx wrote:

        Xcode again? (inside joke here) 😉

        Do you have a way to build a Windows version for comparison?

        Make sure that you're getting all the required _api and res references for header inclusion. Remove _api_maxon from these as it is an empty folder.

        If I have time, I will see what happens on my end.

        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 28/09/2007 at 13:37, xxxxxxxx wrote:

          thanks Robert
          there's only one copy of the sdk, I removed olther ones just in case,
          as well as the _api_maxon empty folder but did not work either.

          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 28/09/2007 at 16:05, xxxxxxxx wrote:

            I just took the cinema4dsdk and widdled it down to a simple command plugin that prints to the Console the object types in the document sent to Execute(). It had no problem identifying any of these types.

            There is definitely something wrong with your build settings, source code, or something else.

            Make sure that you Clean before Build. Make sure that you have no errors (of course) or warnings on the build. Compare your build settings to those for the cinema4dsdk.xcodeproj.

            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 01/10/2007 at 07:44, xxxxxxxx wrote:

              SOME-BODY-SHOOT-ME!

              First I checked my build settings and yes there were some differences with the cinema4dsdk project, I corrected and still did not worked.

              Then I re-installed C4D R10, added this line of code to the cinema4dsdk /source/filter/stl.cpp
              to the loop in WriteObjects() method.

              > _
              > GePrint( String("type ") + LongToString( op- >GetType() ) );
              > _

              build "cinema4dsdk" project
              created a file with a cube and a sphere, then exported with C++ SDK STL
              but the console printed "type 5100" for cube and sphere. 😞

              Robert could you please mail me your test project to see if that works?
              I don't know what else to try.

              thanks for your 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 01/10/2007 at 11:04, xxxxxxxx wrote:

                You can download the project here:

                http://www.kuroyumes-developmentzone.com/\_private\_/testplug.zip

                Note that I keep a copy of the Resource folder like this for headers and the api library:

                plugins
                ...testplug
                Resource

                This is analogous to the standard Cinema 4D organization. You may need to rereference if you don't have the same organization.

                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 01/10/2007 at 15:36, xxxxxxxx wrote:

                  *bang* 🙂

                  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 01/10/2007 at 16:45, xxxxxxxx wrote:

                    ?? 😉

                    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 01/10/2007 at 16:55, xxxxxxxx wrote:

                      Thank you guys, I feel very stupid at this time.

                      it turns out that I started my plugin with a copy of the filter plugin STL
                      and I overlooked this function call right at the begining of the code.

                      > _
                      > stl.doc    = doc->Polygonize();
                      > _

                      no wonder why everything was returning Opolygon.
                      I'm very sorry for the time we lost on this 😞

                      thank you again for your help and patience.

                      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 01/10/2007 at 18:15, xxxxxxxx wrote:

                        That would do it! 😉

                        No problem - we're here to help as much as possible.

                        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 02/10/2007 at 01:56, xxxxxxxx wrote:

                          MAXON should pay us for the support we give here. ;-D

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