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
    • Login

    Differ different NodeData

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 162 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 25/10/2008 at 17:30, xxxxxxxx wrote:

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

      ---------
      Hi!

      Before my plugin is done I have a problem with the last concept. I have two different RegisterTagData() functions which register the same TagClass with different IDs.

      So I pass the Alloc function as argument.

      > \> class MyTag : public TagData \> { \>     static NodeData\* Alloc() \>     { \>         return gNew MyTag; \>     } \> } \> \> \> \> \> RegisterTagData(1234   ..., MyTag::Alloc,...); \> RegisterTagData(5678   ..., MyTag::Alloc,...); \>

      Is it possible to know which Tag was called in MyTag::Alloc? I prefer to pass a pointer as argument which is passed as argument to MyTag::Alloc like

      > Alloc(void\* p)
      ,... thats not possible. Does anyone know another solution how to know which tag was called?

      Thanks and Bye.

      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/10/2008 at 01:52, xxxxxxxx wrote:

        Currently i see no way to do this. Why you want to access this kind of information in Alloc()?

        cheers,
        Matthias

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