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

    Storing Tool plugin settings?

    SDK Help
    0
    4
    300
    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 27/08/2006 at 11:43, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   9.102 
      Platform:   Windows  ;   Mac OSX  ; 
      Language(s) :     C++  ;

      ---------
      How would you go about permanently storing Tool plugin settings (or even storing them in between tool sessions)? You have to initialize them at some point - ala InitTool() - , but that defeats the entire purpose since this is called on every invocation of the tool.

      Help please.

      Thanks,

      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 27/08/2006 at 12:43, xxxxxxxx wrote:

        Maybe InitDefaultSettings()? I'd need more information to understand what this the 'data' BaseContainer actually do.

        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 27/08/2006 at 14:45, xxxxxxxx wrote:

          Okay, I figured out how to retain settings using the data BaseContainer and descriptions in my tool's description header. Making them stick between sessions will need to be tested (prefs lib or my own setting file maybe).

          Thanks,

          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 30/08/2006 at 03:02, xxxxxxxx wrote:

            you can check in InitTool if your id's are avaiable in the container and set them and the values if not. You could also give the container's id the pluginid. In InitTool just check if the id matches. If true, then the tool was already initialized, if false fill the container with initial values.
            That seems to work pretty good for me.

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