Scripting Camera Settings
c567591a
Posts: 44
I was looking for a way to script the camera properties to update some of the settings.
"Focal Point Scale" I'd like to set to like 250% and have limits turned off to update more if needed. Basically I want it easier to see in a scene sometimes.
It is under: Display/Scene View/Line of Sight
I was able to find the function to read the setting: getFocalPointScaleChannel();
I can't find the set version of it or the direct property itself to update it.
Can anyone help?
Comments
getFocalPointScaleChannel() gives you a DzFloatProperty, which is the property itself, you can then get and set its channel directly using the objects own methods http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/object_index/floatproperty_dz
I am told that since the get[something]Channel() naming is not consistent with the more usual get[something]Control() naming they are likely to be deprecated in the not too distant future, which doesn't mean you can use them for now but note that they are ana rea that may need updating if you are planning the script for the long-term.
Ok, great, that worked! Thanks Richard!
See the new change log entries https://docs.daz3d.com/doku.php/public/software/dazstudio/4/change_log#4_15_1_84