Notifications
Clear all

[Closed] pflow turn operators on and off with maxscript

Hi

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.
http://forums.cgsociety.org/showthread.php?f=98&t=816165&highlight=operator+turn

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

3 Replies

Try putting an = in there.

gives me this

$PF.baseobject.cache_disk_start.activated=on
– Unknown property: “activated” in Cache Disk

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