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

    Preference values from a plugin

    Scheduled Pinned Locked Moved SDK Help
    4 Posts 0 Posters 355 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 11/07/2007 at 12:11, xxxxxxxx wrote:

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

      ---------

      BaseContainer* bc = GetWorldPluginData( P406Exporter_NUMBER );  
           Real dT = bc->GetReal(1001); //from export.h  
      

      I have finally set up my preferenceresource file for my plugin and its almost working.
      The problem I have is, that if I change values in the preferences tab they are not updated. GetReal always returns the old value, I have to restart Cinema to get the new value. What do I have to do to get the actual value?

      Any help appreciated.

      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 11/07/2007 at 23:26, xxxxxxxx wrote:

        Hi ...

        I'm not sure ...
        Me ... if I can't get a value this way ... I use the other way ... It's usually OK ...

        Real dT;
        bc->GetReal(1001,dT);
        MessageDialog(LongToString(dT));

        🙂
        Zaw Min Tun

        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 12/07/2007 at 00:46, xxxxxxxx wrote:

          Tnx, but thats not the problem.
          I get the value, but it is the value the preference field had when I opened the document.
          Changes to that value are not applied.
          I found out that saving the document somehow updates the value but this is very annoying. I think it should be possible to update this on an other way.

          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 12/07/2007 at 08:52, xxxxxxxx wrote:

            Are you calling SetWorldPluginData after you change the values?

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