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

    reset userdata to initial value

    Scheduled Pinned Locked Moved SDK Help
    4 Posts 0 Posters 318 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 07/09/2010 at 10:52, xxxxxxxx wrote:

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

      ---------
      having a userdata is link/shader, after loading a shader from a material in the userdata I'm not able to "clear" the link/shader-userdata. how to reset it via coffee

      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 07/09/2010 at 11:36, xxxxxxxx wrote:

        I can't tell if anything might have changed lately,
        but to actually clear the link field and its casheing
        I've used the method of AllocObject(Onull), insert it in the
        document then Remove() it and set its pointer to NULL.

        Cheers
        Lennart

        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 07/09/2010 at 11:37, xxxxxxxx wrote:

          And set the link field as NULL as well if I remember right.
          Cheers
          Lennart

          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 08/09/2010 at 04:29, xxxxxxxx wrote:

            yeah thanx 🙂 had have no clue how to. thank you for awnsering, first try worked :

            var carrier = AllocObject(Onull);
            op#ID_USERDATA:44 = carrier ;

            clears the shader-link and made me happy

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