View Full Version : pflow turn operators on and off with maxscript

12 December 2010, 04:24 PM

I have a flow with several disk cache op's - which I would like to turn on and off with maxscript.
This question has been posted before but I cannot make it work. Seems this approach only works on whole events and not single operators.

Shouldnt I according to the post be able to write :

PF.event.operator.activated on ( for turning operator on )

PF.event.operator.activated off ( for turning operator off )

For a particular system it would be fx $Pflow.Event01.'disk cache01'.activated off

12 December 2010, 05:25 AM
Try putting an = in there.

12 December 2010, 09:51 AM
gives me this

-- Unknown property: "activated" in Cache Disk

12 December 2010, 05:27 PM
I don't think you can do it that way. I believe you will need to use the Interface: ActionList. From the Maxscript Help:<bool>isActivated()
Returns true if activated.

<void>activate <bool>active
Sets the active state to the boolean value specified by the active parameter.

<integer>isActionActive <index>index
Returns 1 if the indexed action is active, 0 otherwise.

<void>activateAction <index>index <integer>active
Sets the active flag of the indexed action. 0 = inactive, 1= active-Eric

CGTalk Moderation
12 December 2010, 05:27 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.