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

    Reset to Default

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 348 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 21/05/2012 at 13:28, xxxxxxxx wrote:

      Is there any way to script the equivalent of right-clicking and choosing "Reset to Default"?

      I am trying to come up with a script that displays properties that have changed from their default values.

      "IsDirty()" does not work for my purposes.  I would rather have "InitSettings()", "GetDefault()", "IsDefault()", "ResetToDefault()" or something of that nature.

      Thanks.

      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 22/05/2012 at 06:46, xxxxxxxx wrote:

        It is not possible to access the parameters description container of a node.
        But we can access the one of a user data. For example here is how to reset all float user data of an object:

        import c4d
          
        for id, bc in op.GetUserDataContainer() :        # Loop through each user data
            if bc.GetId()==c4d.DTYPE_REAL:              # Test if it's a float user data
                op[id] = bc.GetReal(c4d.DESC_DEFAULT)   # Reset value to its default
                c4d.EventAdd()                          # Tells CINEMA that scene data was changed
        
        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 22/05/2012 at 11:28, xxxxxxxx wrote:

          Good to know.  Thanks.

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