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

    userdata read and write?

    Scheduled Pinned Locked Moved SDK Help
    5 Posts 0 Posters 416 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 18/11/2008 at 05:16, xxxxxxxx wrote:

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

      ---------
      Hello. With the following code I can read the userdata of a coffe-tag. After changing the var, the console shows the correct value, but not the attribute-manager. How I change the ID_USERDATA in the attribute-manager? Please help.

      > <code>
      > main(doc,op)
      > {
      > var tag=op->GetFirstTag();
      > while (!tag==NULL && !instanceof(tag, CoffeeExpressionTag))
      >      {
      >      tag=tag->GetNext();
      >      }
      > if (!instanceof(tag, CoffeeExpressionTag)) return false;
      >
      > var active=tag#ID_USERDATA:1;
      > println(active); //console:=0
      > active=1;
      > println(active); //console:=1
      > }
      > </code>

      thx, René

      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 18/11/2008 at 05:20, xxxxxxxx wrote:

        Quote: _How I change the ID_USERDATA in the attribute-manager?
        >
        > * * *
        _


        This should work:

        > \> tag#ID_USERDATA:1 = myvalue; //my value for the userdata \>

        cheers,
        Matthias

        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 18/11/2008 at 05:25, xxxxxxxx wrote:

          hello and thanks. It works. The result is so simple. 😄

          But i can not read the userdata of type "spline", right?

          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 18/11/2008 at 05:35, xxxxxxxx wrote:

            Unfortunatly spline userdata is not supported in COFFEE.

            cheers,
            Matthias

            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 03/01/2009 at 01:46, xxxxxxxx wrote:

              Matthias,

              Does this mean that userdata is supported otherwise? If so, how can I access the native color picker within C4D?

              Richard

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