Preference values from a plugin

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.

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

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.

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?