Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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

    USERDATA access via name?

    SDK Help
    0
    3
    535
    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
      Helper
      last edited by

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

      On 12/11/2008 at 18:04, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   10.1 
      Platform:    Mac  ;  
      Language(s) :   C.O.F.F.E.E  ;

      ---------
      Hi everyone,
         Is it possible to access userdata in an object or tag via a name instead of an ID number? To ensure I have all of the right Data parameters accessed properly, rather than by order as I shuffle things about during cleanup, I'd like to change:

      var y = op#ID_USERDATA:1;
      to something like
      var y = op#ID_USERDATA:UserDataNameCreatedInEditUserDataGoesHere;
      or
      op#ID_USERDATA:"UserDataNameCreatedInEditUserDataGoesHere";
      Thanks,
      Graham

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

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

        On 13/11/2008 at 00:38, xxxxxxxx wrote:

        This is currently not possible.

        cheers,
        Matthias

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

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

          On 13/11/2008 at 10:56, xxxxxxxx wrote:

          Thanks for the prompt response Matthias,
             I guess this will force me to stop being lazy and create a proper dialog interface for the expression menu plugin...something I need to learn anyway.
          Cheers,
          Graham

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