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

    Clashing IDs

    Scheduled Pinned Locked Moved PYTHON Development
    6 Posts 0 Posters 545 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 16/04/2012 at 02:41, xxxxxxxx wrote:

      OK - I'm still new to this, don't laugh

      My plugin GUI items start at 1000, 1001
      which work fine

      then I added
      INCLUDE Osplineprimitive;
      to my plugin res file
      now changing some of my GUI items  - changes the included interface

      so I changed my own gui enum ID  - that stopped the clash with the Osplineprimitive;

      - now my interface items don't work

      how do the enum IDs connect with your own interface items?

      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 16/04/2012 at 05:01, xxxxxxxx wrote:

        First, in the Python SDK DoubleCircle's example (it also includes Osplineprimitive) the enum begins at 10000 (same in C++).

        Originally posted by xxxxxxxx

        so I changed my own gui enum ID  - that stopped the clash with the Osplineprimitive;

        - now my interface items don't work

        how do the enum IDs connect with your own interface items?

        What's not working as expected in the interface ?

        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 16/04/2012 at 05:33, xxxxxxxx wrote:

          Sorry Yannick - I open the PY file mentioned and it says

          enum
          {
          	PYCIRCLEOBJECT_RAD		= 10000 // values 1000.3000 already reserved from includes
          };
            
          #endif
          

          fromm that are we to guess that we can't use any IDs from 1000 to 3000 
          IF we are going to use the INCLUDE res files in our plugins

          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 20/04/2012 at 04:30, xxxxxxxx wrote:

            Yes, that's true.
            Those IDs are mostly used by the base attributes you automatically get when including something like "Obase" in your .res file.
            If you start your IDs with greater values (like e.g. 10000) you will be on the safe side.

            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 21/04/2012 at 00:46, xxxxxxxx wrote:

              thanks for confirmation

              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 21/04/2012 at 01:51, xxxxxxxx wrote:

                as a side note : obase stays below 1000, only if you include extra standard interfaces like 
                ospline you have to make sure which ids above 1000 you are using.

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