Jump to content

Button parameters?


Recommended Posts

Is it possible to copy-paste buttons?

I have a selection of networks that do the same thing on different imputs. I made a "master null" with some parameters that control some global parameters in those networks. That works fine.

But I also would like to have some master-buttons in a similar way so that I press one button all the others get pressed. I noticed that I can rightclick a button and all the usual stuff pops up but copy-pasting seems to have no effect. What's the most straightforward, easiest way of doing this?

Link to comment
Share on other sites

in the callback script, use the opparm function, you may get yelled at for some "locked" assets but it will execute. You can just specific in your otl which node to unlock, to avoid that. The callback script has a tendency not to copy.

opparm -c path/to/node parameter;

Link to comment
Share on other sites

Depending on how many nodes have buttons you are trying to trigger, It might be best to have a callback that gathers a list of them dynamically or i suppose in the case the node remain consistant, a static list can be used. Then iterate through them pressing the buttons. I usually like python for dealing with node collections.

When all the nodes are of a known type node.recursiveGlob and node.glob tend to be useful. The recursive can take a filter but plain glob can't which leaves a type test iteration to slim down the list.

Then assuming all the nodes have similar name parm buttons you can grab a ref to the parm

myparm = mynode.parm('smoo')

and trigger the button via

mynode.pressButton()

Link to comment
Share on other sites

  • 5 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...