THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 14/07/2011 at 17:57, xxxxxxxx wrote:
I have been going out of my mind how to access data from the c4d preferances dialog namely the import export section and hope someone can give me an answer.
Now i can read the preferences like this for example:
bc = c4d.plugins.GetWorldPluginData(c4d.FORMAT_OBJIMPORT)
imp_normals = bc.GetBool(c4d.OBJIMPORTFILTER_IMPORTNORMALS)
print "WaveFront import normals: " , imp_normals
But this is where the problem lies the value returned is only the inital value that is set when c4d boots. It is not the actual CURRENT value as shown in the preferance dialog and never gets updated until c4d is closed and reopened.
So my question is how do i get the CURRENT setting(s) of import/Exports filters as shown by the prefs dialog.
p.s i have also tried using c4d.GetWorldContainerInstance() and the finding the data but for import/export filters it is the same as above only the inital value is shown not the current.
i have also tried c4d.plugins.FindPlugin(c4d.FORMAT_OBJIMPORT).GetDataInstance() but this does not seem to return the data i am after- not sure what it is it actually returns but seems to be a couple of ids in the basecontainer that i have no idea what they are
Many thanks in advance:wink: