Feedback

What's your question?

By: [ Admin ] Asked from India

Nuke equivalent of Shake's 1-sys.runLevel

Question posted at VFX Overflow Facebook group by Matthew Shaw:

Anyone out there know if there is a Nuke equivalent to Shake's 1-sys.runLevel command that enables a node (or diffferent branch) to switch on upon render? For example can be used to switch on motionblur, or a process hungry branch when rendering (through a select node).

Add comment viewed 483 times Latest activity 7 months ago

or Cancel

1 answer

  • 3

hugh_gid [ Editor ]

You need to use the '$gui' variable.

Very useful to add it as an expression to the 'disable' knob of a node ("Node" tab, R-Click on 'disable' and select "Add Expression". Just put in '$gui', and the node will get a single line through it rather than an X. This means that the disable is an expression rather than fixed. With '$gui', it'll be enabled when rendering, but disabled in the GUI.)

Elsewhere, just use expressions like:

$gui?<valueInGui>:<valueWhenRendering>
NN comments
julian
-

That was fast – 9 minutes. ;) I’ll send a message to Matthew Shaw and point him here.

hugh_gid
-

Good stuff :D Right place at the right time! (Twitter, in this case)

dbr
-

Why is this $gui not gui or similar? Was looking for this today, and ended up using [python nuke.env\['gui'\]] after trying various tcl expressions like root.gui etc..

or Cancel