Hi Bohus,
this is the correct way
Your example reveals that the defaults for maxscript OperatorPlugins should be matched to the VFB ones.
newOp = ContrastOperatorPlugin()
This, for example, creates a ContrastOperator which is a) disabled and b) has value 0. Many default values differ from those you get when adding an operator in VFB by pressing "+" (the VFB default values are all ok).
In detail (max object defaults vs. VFB defaults):
ContrastOperatorPlugin: value is 0, should be 1
LutOperatorPlugin: opacity is 0, should be 1
ReinhardOperatorPlugin: compression is 0, gets 0.01 after adding to VFB via script and enabling it, should be 1
TintOperatorPlugin: colour is 0 0 0, should be 255 255 255
WhiteBalanceOperatorPlugin: value is 0, gets 2000 after adding to VFB via script and enabling it, should be 6500
AdvancedFilmicOperatorPlugin: toe lengh and shoulder length is 0, should be 0.5 both
And basically all operators should be enabled by default (colorMappingOperator_enabled=1).
Good Luck
Edit: Fixed in v9 RC2, thanks!
« Last Edit: 2022-10-06, 14:21:01 by Frood »
Logged
Never underestimate the power of a well placed level one spell.