PDA

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


designit
12-22-2010, 04:24 PM
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

Dubbie
12-23-2010, 05:25 AM
Try putting an = in there.

designit
12-23-2010, 09:51 AM
gives me this


$PF.baseobject.cache_disk_start.activated=on
-- Unknown property: "activated" in Cache Disk

PiXeL_MoNKeY
12-23-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-23-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.