Re: [Nuke-users] opposite of $gui
!$gui ? On Fri, Mar 11, 2011 at 10:56 AM, Randy Little randyslit...@gmail.com wrote: Is there an opposite of using $gui? Randy S. Little http://www.rslittle.com ___ Nuke-users mailing list Nuke-users@support.thefoundry.co.uk http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users ___ Nuke-users mailing list Nuke-users@support.thefoundry.co.uk http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
Re: [Nuke-users] opposite of $gui
This might be too obvious for you, but in case it helps others, here's an expression to set a value (in this case colour) to be .2 when using the GUI, and .8 when not. I sometimes use this sort of thing to set motion blur in scanline renders (so it's fast in gui, but renders with motion blur). You have to watch out, because if you render a frame from the gui, gui is still set at 1 (unlike in Shake which would set a separate process and render with gui 0). Hope it helps (someone!) set cut_paste_input [stack 0] version 6.1 v2 Constant { inputs 0 channels rgb color {{\$gui?.2:.8}} name Constant6 selected true xpos -1800 ypos 15726 } - Original Message - From: Sean Danischevsky sdani...@framestore.com To: Nuke user discussion nuke-users@support.thefoundry.co.uk Sent: Friday, 11 March, 2011 7:03:31 PM Subject: Re: [Nuke-users] opposite of $gui Hmmm... what a metaphysical question! Not sure quite what you mean, but if you're using the gui, then $gui = 1, so the opposite (not using gui) is 1-$gui Sean - Original Message - From: Randy Little randyslit...@gmail.com To: Nuke user discussion nuke-users@support.thefoundry.co.uk Sent: Friday, 11 March, 2011 6:56:49 PM Subject: [Nuke-users] opposite of $gui Is there an opposite of using $gui? Randy S. Little http://www.rslittle.com ___ Nuke-users mailing list Nuke-users@support.thefoundry.co.uk http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users -- Sean Danischevsky Senior Compositing Artist Framestore 19-23 Wells Street London W1T 3PQ Tel. +44 (0)20 7344 8000 -- Sean Danischevsky Senior Compositing Artist Framestore 19-23 Wells Street London W1T 3PQ Tel. +44 (0)20 7344 8000 ___ Nuke-users mailing list Nuke-users@support.thefoundry.co.uk http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
Re: [Nuke-users] opposite of $gui
to explain for those that dont know this and possibly setting out my ignorance '!' means 'not' in this case so $gui is a variable (constant?) that basically asks is the gui (graphical interface) being used? if yes then True (or 1) and if no then False (or 0) '!' then turns this on its head and says is the GUI NOT being used, true if yes and false if not So if you are using the gui and have $gui in a disable knob it means turn this off when the gui is on and on in bg rendering. !$gui means turn this on when the gui is on and off in the bg (good for overlay text that you dont want to render) You can use '!' to invert all sorts of user variables. H From: Ivan Busquets ivanbusqu...@gmail.com To: Nuke user discussion nuke-users@support.thefoundry.co.uk Sent: Fri, 11 March, 2011 18:59:39 Subject: Re: [Nuke-users] opposite of $gui !$gui? On Fri, Mar 11, 2011 at 10:56 AM, Randy Little randyslit...@gmail.com wrote: Is there an opposite of using $gui? Randy S. Little http://www.rslittle.com ___ Nuke-users mailing list Nuke-users@support.thefoundry.co.uk http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users ___ Nuke-users mailing list Nuke-users@support.thefoundry.co.uk http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
Re: [Nuke-users] opposite of $gui
I don't usually like using !$gui. I use $gui with ? and : to form an if then else statement.. Useful for motion blur and switches and other items like disables. It's also a little more specific for me. Example: $gui?1:10 -- If GUI is present, use 1, otherwise use 10 Howard Jones wrote: to explain for those that dont know this and possibly setting out my ignorance '!' means 'not' in this case so $gui is a variable (constant?) that basically asks is the gui (graphical interface) being used? if yes then True (or 1) and if no then False (or 0) '!' then turns this on its head and says is the GUI NOT being used, true if yes and false if not So if you are using the gui and have $gui in a disable knob it means turn this off when the gui is on and on in bg rendering. !$gui means turn this on when the gui is on and off in the bg (good for overlay text that you dont want to render) You can use '!' to invert all sorts of user variables. H *From:* Ivan Busquets ivanbusqu...@gmail.com *To:* Nuke user discussion nuke-users@support.thefoundry.co.uk *Sent:* Fri, 11 March, 2011 18:59:39 *Subject:* Re: [Nuke-users] opposite of $gui !$gui? On Fri, Mar 11, 2011 at 10:56 AM, Randy Little randyslit...@gmail.com mailto:randyslit...@gmail.com wrote: Is there an opposite of using $gui? Randy S. Little http://www.rslittle.com http://reel.rslittle.com ___ Nuke-users mailing list Nuke-users@support.thefoundry.co.uk mailto:Nuke-users@support.thefoundry.co.uk http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users ___ Nuke-users mailing list Nuke-users@support.thefoundry.co.uk http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users -- / aruna / 2d at d2 / x2477 / ___ Nuke-users mailing list Nuke-users@support.thefoundry.co.uk http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users