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

    Python|Plugin History Guides?

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 274 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 06/09/2010 at 15:25, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R12 
      Platform:      
      Language(s) :

      ---------
      What is a good way of taking care of your plugin history?
      As a hard core coffee man I've used try() and Catch()
      to set old versions to default values not present.

      Now in Python that might be helped by C++ techniques,
      do you hide old versions (ID's) and simply let the new "take over"
      or is there a common way of doing it within the plugin?

      Cheers
      Lennart

      ps. maybe time for a Python option in the topic language? ds.

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

        Hi tcaststudios,

        Python also supports try, catch. This might work in proper cases but the best solution IMHO is the use of decorators in Python. With decorators you can redirect function calls and implement a version dependency.

        Cheers, Sebastian

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

          Thanks, will look at that.

          Cheers
          Lennart

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