Control ProOptimizer from C++

Control ProOptimizer from C++

Anonymous
Not applicable
726 Views
1 Reply
Message 1 of 2

Control ProOptimizer from C++

Anonymous
Not applicable

Hi!

For the company purposes I am developing a plugin, and, among other things, it is required to set Calculate on every ProOptimizer instance to True, when requested. Is it possible to change Calculate option of the modifier via C++ SDK?

 

Thanks in advance. 

0 Likes
Accepted solutions (1)
727 Views
1 Reply
Reply (1)
Message 2 of 2

denisT.MaxDoctor
Advisor
Advisor
Accepted solution

you can do easily...

 

#1 - collect all ProOptimizer instances (you can find a code how to do it in avg_dlx.cpp

#2 - cast every ProOptimizer node as MAXModifier (or Value) and set its property ("Calculate")  using  set_property method

 

alternative #2:

 

#2 - handle every ProOptimizer as Animatable and set its ParamBlock param "Calculate" with SetValue of a corresponding paramBlock (which is first in your case)

 

 

0 Likes