<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.7.3" -->
<rss version="2.0">
	<channel>
		<title>Cook Book</title>
		<description></description>
		<link><![CDATA[http://www.nukepedia.com/index.php?option=com_content&task=section&id=7]]></link>
		<lastBuildDate>Wed, 22 Feb 2012 14:46:49 +0100</lastBuildDate>
        <generator>FeedCreator 1.7.3</generator>
		<item>
			<title>Working Directory</title>
			<link>http://www.nukepedia.com/python/working-directory/</link>
			<description>&lt;p&gt;Howdy. Just thought I'd share this snippet of a code with you guys. Enter this into the &quot;onScriptLoad&quot; of the project setting to automatically set the working directory to where the nuke file is located. This probably only works in Windows, so if someone gets working versions for the other OS, that would be great.&lt;/p&gt;
&lt;p&gt;os.chdir(nuke.root().name()[0:nuke.root().name().rfind(&quot;/&quot;)])&lt;/p&gt;</description>
			<category>Cook Book</category>
			<pubDate>Mon, 09 Jan 2012 20:05:40 +0100</pubDate>
		</item>
		<item>
			<title>List of Nuke Flags</title>
			<link>http://www.nukepedia.com/python/list-of-nuke-flags/</link>
			<description>&lt;pre style=&quot;padding-top: 0px; padding-right: 4px; padding-bottom: 0px; padding-left: 4px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-width: 20px; border-left-style: solid; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; font-size: 12px; color: #2e8b57; font-family: 'Droid Sans Mono', arial, serif; white-space: pre-wrap; vertical-align: top; background-position: initial initial; background-repeat: initial initial; border-color: #696969; margin: 0px;&quot;&gt;&quot;&quot;&quot;&lt;br /&gt;flags.py&lt;br /&gt; nuke flags for easy access from /include/DDImage/Knob.h&lt;br /&gt; These are updated for nuke 6.2 with added comments. Flags not in 6.1 are &lt;br /&gt; READ_ONLY, GRANULARY_UNDO, NO_RECURSIVE_PATHS&lt;br /&gt; comments taken from Documentation/NDK/Plugins/namespaceDD_1_1Image.html#426fa024992892aa333e53b4e19109b5&lt;br /&gt;&quot;&quot;&quot;&lt;br /&gt;&lt;br /&gt;# General flags (must not intersect any class-specific flags):&lt;br /&gt;# Values that work for any knob:&lt;br /&gt;DISABLED&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x00000080&amp;nbsp;&amp;nbsp;&amp;nbsp; # DISA...</description>
			<category>Cook Book</category>
			<pubDate>Wed, 22 Jun 2011 00:28:51 +0100</pubDate>
		</item>
		<item>
			<title>Creating a new menu for Custom Gizmos</title>
			<link>http://www.nukepedia.comindex.php?option=com_content&amp;amp;id=&amp;amp;view=article</link>
			<description>&lt;div style=&quot;height: 100%; color: gray; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #323232; overflow-y: scroll; line-height: 150%; padding: 0px; margin: 0px;&quot;&gt;
&lt;p style=&quot;margin-top: 10px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px; padding: 0px;&quot;&gt;I had TONS of trouble trying to figure out how to make a menu, so here is my tutorial. (Keep in mind, this is a tutorial for super ultra mega beginners)&amp;nbsp;Be SURE you read the directories carefully during this tutorial!&lt;/p&gt;
&lt;p style=&quot;margin-top: 10px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px; padding: 0px;&quot;&gt;What we will do: We will add a new menu to your &quot;Nodes&quot; menu. This will make your custom gizmos easier to access.&lt;/p&gt;
&lt;p style=&quot;margin-top: 10px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px; padding: 0px;&quot;&gt;First, we need to create some directories and files.&lt;/p&gt;
&lt;p style=&quot;margin-top: 10px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px; padding: 0px;&quot;&gt;Navigate to Nuke x.x/plugins/ (My directory is:&amp;nbsp;&lt;strong&gt;/usr/local/Nuke6.1v3-32/plugins/&lt;/strong&gt;) (sometimes Nuke x.x...</description>
			<category>Cook Book</category>
			<pubDate>Sat, 19 Mar 2011 06:46:23 +0100</pubDate>
		</item>
		<item>
			<title>Creating a new menu for Custom Gizmos</title>
			<link>http://www.nukepedia.com/gizmos/creating-a-new-menu-for-custom-gizmos/</link>
			<description>&lt;p&gt;I had TONS of trouble trying to figure out how to make a menu, so here is my tutorial. (Keep in mind, this is a tutorial for super ultra mega beginners)&amp;nbsp;Be SURE you read the directories carefully during this tutorial!&lt;/p&gt;
&lt;p&gt;What we will do: We will add a new menu to your &quot;Nodes&quot; menu. This will make your custom gizmos easier to access.&lt;/p&gt;
&lt;p&gt;First, we need to create some directories and files.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Navigate to Nuke x.x/plugins/ (My directory is:&amp;nbsp;&lt;strong&gt;/usr/local/Nuke6.1v3-32/plugins/&lt;/strong&gt;) (sometimes Nuke...</description>
			<category>Cook Book</category>
			<pubDate>Sat, 19 Mar 2011 06:39:40 +0100</pubDate>
		</item>
		<item>
			<title>Creating a new menu for Custom Gizmos</title>
			<link>http://www.nukepedia.com/gizmos/creating-a-new-menu-for-custom-gizmos/</link>
			<description>&lt;p&gt;I had TONS of trouble trying to figure out how to make a menu, so here is my tutorial. (Keep in mind, this is a tutorial for super ultra mega beginners)&amp;nbsp;Be SURE you read the directories carefully during this tutorial!&lt;/p&gt;
&lt;p&gt;What we will do: We will add a new menu to your &quot;Nodes&quot; menu. This will make your custom gizmos easier to access.&lt;/p&gt;
&lt;p&gt;First, we need to create some directories and files.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Navigate to Nuke x.x/plugins/ (My directory is:&amp;nbsp;&lt;strong&gt;/usr/local/Nuke6.1v3-32/plugins/&lt;/strong&gt;) (sometimes Nuke...</description>
			<category>Cook Book</category>
			<pubDate>Sat, 19 Mar 2011 06:38:40 +0100</pubDate>
		</item>
		<item>
			<title>Verbose to super verbose python trace debugging</title>
			<link>http://www.nukepedia.com/python/verbose-to-super-verbose-python-trace-debugging/</link>
			<description>&lt;p&gt;Sometimes, verbose just isn't enough. There are a couple options:&lt;/p&gt;
&lt;p class=&quot;header-2&quot;&gt;&lt;strong&gt;&lt;span class=&quot;header-3&quot;&gt;1st level:&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;In your nuke home dir (assuming you haven't changed it, ~/.nuke on OSX and Linux - I don't know Windows), add or modify the init.py file by adding the line:&lt;/p&gt;
&lt;div class=&quot;rj_insertcode&quot;&gt;
&lt;div class=&quot;rj_insertcode_python&quot;&gt;
&lt;div class=&quot;python&quot; style=&quot;border-collapse: collapse; width: 100%; border: 1px solid #054b6e; background: #f8f8f8;&quot;&gt;
&lt;pre style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;&lt;span style=&quot;vertical-align: top;&quot;&gt;&lt;span style=&quot;color: #ff7700; font-weight: bold;&quot;&gt;import&lt;/span&gt; callbacksTrace&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;This prints out every callback nuke makes. There are a lot of them!&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2nd level (super verbose):&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;If you want to get tons more information that you'll probably ever need, but might just help you find or discover that one stupi...</description>
			<category>Cook Book</category>
			<pubDate>Sun, 06 Mar 2011 22:39:27 +0100</pubDate>
		</item>
		<item>
			<title>Random Number Generator</title>
			<link>http://www.nukepedia.com/expressions/random-number-generator/</link>
			<description>&lt;p&gt;A quick expression to generate numbers such as the gain value of a grade.&lt;/p&gt;
&lt;p&gt;Either of these values will generate a value from 0 to 1.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;random()&lt;/em&gt;&lt;/strong&gt; or &lt;strong&gt;&lt;em&gt;random(frame)&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;if you want to have the values from 0 to 2 &amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;2*random()&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;For generating from 1 to 2&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;1+random()&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;</description>
			<category>Cook Book</category>
			<pubDate>Fri, 18 Feb 2011 22:11:30 +0100</pubDate>
		</item>
		<item>
			<title>Some Flags</title>
			<link>http://www.nukepedia.com/python/some-flags/</link>
			<description>&lt;p&gt;Using flags can be frustrating because not all flags are easily accessed or documented. Create a flags.py file and you have a simple way to easily get at them. Thanks to Nathan and Dee for the tip on where to find them. I'm not sure what context you would use all these or if they are all valid from within python, but the flags I've used from here all work.&lt;/p&gt;
&lt;table class=&quot;python&quot; style=&quot;border-collapse: collapse; width: 100%; border: 1px solid #054b6e; background: #f8f8f8;&quot;&gt;
&lt;tbody&gt;
&lt;tr class=&quot;li1&quot;&gt;
&lt;td style=&quot;width: 1px; background: #f0f0f0; vertical-align: top; color: #676f73; border-right: 1px dotted #dddddd; font-size: 12px; text-align: right;&quot;&gt;
&lt;pre style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;1&lt;br /&gt;2&lt;br /&gt;3&lt;br /&gt;4&lt;br /&gt;5&lt;br /&gt;6&lt;br /&gt;7&lt;br /&gt;8&lt;br /&gt;9&lt;br /&gt;10&lt;br /&gt;11&lt;br /&gt;12&lt;br /&gt;13&lt;br /&gt;14&lt;br /&gt;15&lt;br /&gt;16&lt;br /&gt;17&lt;br /&gt;18&lt;br /&gt;19&lt;br /&gt;20&lt;br /&gt;21&lt;br /&gt;22&lt;br /&gt;23&lt;br /&gt;24&lt;br /&gt;25&lt;br /&gt;26&lt;br /&gt;27&lt;br /&gt;28&lt;br /&gt;29&lt;br /&gt;30&lt;br /&gt;31&lt;br /&gt;32&lt;br /&gt;33&lt;br /&gt;34&lt;br /&gt;35&lt;br /&gt;36&lt;br /&gt;37&lt;br /&gt;38&lt;br /&gt;39&lt;br /&gt;40&lt;br /&gt;41&lt;br /&gt;42&lt;br /&gt;43&lt;br /&gt;44&lt;br /&gt;45&lt;br /&gt;46&lt;br /&gt;47&lt;br /&gt;48&lt;br /&gt;49&lt;br /&gt;50&lt;br /&gt;51&lt;br /&gt;52&lt;br /&gt;53&lt;br /&gt;54&lt;br /&gt;55&lt;br /&gt;56&lt;br /&gt;57&lt;br /&gt;58&lt;br /&gt;59&lt;br /&gt;60&lt;br /&gt;61&lt;br /&gt;62&lt;br /&gt;&lt;/pre&gt;
&lt;/td&gt;
&lt;td style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;
&lt;pre style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;&quot;&quot;&quot;&lt;br /&gt;flags.py&lt;br /&gt; ...</description>
			<category>Cook Book</category>
			<pubDate>Wed, 01 Dec 2010 16:35:14 +0100</pubDate>
		</item>
		<item>
			<title>Adding a Gizmo Icon</title>
			<link>http://www.nukepedia.com/gizmos/adding-a-gizmo-icon/</link>
			<description>&lt;p&gt;Why have a normal gizmo when you can spice it up with a flashy icon that shows up in your GUI? Just add this line to your .gizmo file, as the first line in your gizmo.&lt;/p&gt;
&lt;table class=&quot;python&quot; style=&quot;border-collapse: collapse; width: 100%; border: 1px solid #054b6e; background: #f8f8f8;&quot;&gt;
&lt;tbody&gt;
&lt;tr class=&quot;li1&quot;&gt;
&lt;td style=&quot;width: 1px; background: #f0f0f0; vertical-align: top; color: #676f73; border-right: 1px dotted #dddddd; font-size: 12px; text-align: right;&quot;&gt;
&lt;pre style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;1
2
&lt;/pre&gt;
&lt;/td&gt;
&lt;td style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;
&lt;pre style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;&lt;span style=&quot;vertical-align: top;&quot;&gt;Gizmo &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;vertical-align: top;&quot;&gt;icon /the/location/of/your/gizmoimage.&lt;span style=&quot;color: black;&quot;&gt;png&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The .png file should be manageable, I use an image size of 90x66 pixels, and set up the image as a transparent .png file.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.digitalgypsy.com/vfxlog/archives/news/pimpinDG.jpg&quot; alt=&quot;Pimping DigitalGypsy&quot; /&gt;&lt;/p&gt;...</description>
			<category>Cook Book</category>
			<pubDate>Mon, 30 Aug 2010 18:16:05 +0100</pubDate>
		</item>
		<item>
			<title>write nodes filename from topmost read</title>
			<link>http://www.nukepedia.com/tcl/write-nodes-filename-from-topmost-read/</link>
			<description>&lt;p&gt;if you need your output file named exactly like your input file then use a little TCL expression in the file knob of the write node&lt;/p&gt;
&lt;p&gt;suggestion your filename convention is like: //path/to/file/filename.pattern.ext&lt;/p&gt;
&lt;p&gt;then:&lt;/p&gt;
&lt;table class=&quot;tcl&quot; style=&quot;border-collapse: collapse; width: 100%; border: 1px solid #054b6e; background: #f8f8f8;&quot;&gt;
&lt;tbody&gt;
&lt;tr class=&quot;li1&quot;&gt;
&lt;td style=&quot;width: 1px; background: #f0f0f0; vertical-align: top; color: #676f73; border-right: 1px dotted #dddddd; font-size: 12px; text-align: right;&quot;&gt;
&lt;pre style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;1
&lt;/pre&gt;
&lt;/td&gt;
&lt;td style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;
&lt;pre style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;&lt;span style=&quot;vertical-align: top;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;lindex&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;split&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;lindex&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;split&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;[&lt;/span&gt;knob &lt;span style=&quot;color: black;&quot;&gt;[&lt;/span&gt;topnode&lt;span style=&quot;color: black;&quot;&gt;]&lt;/span&gt;.&lt;span style=&quot;color: #008000;&quot;&gt;file&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;]&lt;/span&gt; .&lt;span style=&quot;color: black;&quot;&gt;]&lt;/span&gt; &lt;span style=&quot;color: #ff4500;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;]&lt;/span&gt; /&lt;span style=&quot;color: black;&quot;&gt;]&lt;/span&gt; end&lt;span style=&quot;color: black;&quot;&gt;]&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;will give you back just the &quot;filename&quot; part of the original read node&lt;/p&gt;
&lt;p&gt;if you want to write to same folder as the original file but with a new filename extension you could use:&lt;/p&gt;
&lt;table class=&quot;tcl&quot; style=&quot;border-collapse: collapse; width: 100%; border: 1px solid #054b6e; background: #f8f8f8;&quot;&gt;
&lt;tbody&gt;
&lt;tr class=&quot;li1&quot;&gt;...</description>
			<category>Cook Book</category>
			<pubDate>Mon, 30 Aug 2010 13:34:43 +0100</pubDate>
		</item>
		<item>
			<title>Using nuke.animation without tearing your hair out</title>
			<link>http://www.nukepedia.com/python/using-nukeanimation-without-tearing-your-hair-out/</link>
			<description>&lt;p&gt;This is quite possibly the most stubborn Nuke Python function I've ever encountered, and it took me a lot of poking and prodding to get it worked out, so I figured I should spread the knowledge around.&lt;/p&gt;
&lt;p&gt;nuke.animation is the Python equivalent of (/wrapper for?) the TCL &quot;animation&quot; command. It allows you to perform operations on animation data, including the &quot;Generate...&quot; command found in any knob's &quot;Edit&quot; menu. This is the main reason I became interested in it in the first place, as I was writing...</description>
			<category>Cook Book</category>
			<pubDate>Fri, 27 Aug 2010 19:37:25 +0100</pubDate>
		</item>
		<item>
			<title>Getting correct format and frame range if QuickTime movie, added via Python</title>
			<link>http://www.nukepedia.com/python/getting-correct-format-and-frame-range-if-quicktime-movie-added-via-python/</link>
			<description>&lt;p&gt;If you want to add a QuickTime movie to the DAG pythonically, here's a trick for making sure you get the correct format and frame range.&lt;br /&gt;(setValue on the file knob after a node has been created does not work as expected)&lt;/p&gt;
&lt;table class=&quot;python&quot; style=&quot;border-collapse: collapse; width: 100%; border: 1px solid #054b6e; background: #f8f8f8;&quot;&gt;
&lt;tbody&gt;
&lt;tr class=&quot;li1&quot;&gt;
&lt;td style=&quot;width: 1px; background: #f0f0f0; vertical-align: top; color: #676f73; border-right: 1px dotted #dddddd; font-size: 12px; text-align: right;&quot;&gt;
&lt;pre style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;1
2
&lt;/pre&gt;
&lt;/td&gt;
&lt;td style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;
&lt;pre style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;&lt;span style=&quot;vertical-align: top;&quot;&gt;filepath = myMov.&lt;span style=&quot;color: black;&quot;&gt;mov&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;vertical-align: top;&quot;&gt;nuke.&lt;span style=&quot;color: black;&quot;&gt;createNode&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #483d8b;&quot;&gt;&quot;Read&quot;&lt;/span&gt;, &lt;span style=&quot;color: #483d8b;&quot;&gt;&quot;file &quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt; &lt;/p&gt;...</description>
			<category>Cook Book</category>
			<pubDate>Mon, 16 Aug 2010 13:09:24 +0100</pubDate>
		</item>
		<item>
			<title>Techartists.org Python Portal</title>
			<link>http://www.nukepedia.com/python/techartistsorg-python-portal/</link>
			<description>&lt;p&gt;Some very useful information and some recipes:&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://tech-artists.org/wiki/Portal:Python&quot;&gt;http://tech-artists.org/wiki/Portal:Python&lt;/a&gt;&lt;/p&gt;</description>
			<category>Cook Book</category>
			<pubDate>Thu, 12 Aug 2010 17:51:42 +0100</pubDate>
		</item>
		<item>
			<title>hotkey for toggling depth in viewer</title>
			<link>http://www.nukepedia.com/python/hotkey-for-toggling-depth-in-viewer/</link>
			<description>&lt;p&gt;Here is an example of how to add a hotkey to toggle the viewer' layer (aka channel set) to depth and back.&lt;/p&gt;
&lt;p&gt;First we get the currently active viewer (in case there are mutliple ones in the current layout):&lt;/p&gt;
&lt;table class=&quot;python&quot; style=&quot;border-collapse: collapse; width: 100%; border: 1px solid #054b6e; background: #f8f8f8;&quot;&gt;
&lt;tbody&gt;
&lt;tr class=&quot;li1&quot;&gt;
&lt;td style=&quot;width: 1px; background: #f0f0f0; vertical-align: top; color: #676f73; border-right: 1px dotted #dddddd; font-size: 12px; text-align: right;&quot;&gt;
&lt;pre style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;1
&lt;/pre&gt;
&lt;/td&gt;
&lt;td style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;
&lt;pre style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;&lt;span style=&quot;vertical-align: top;&quot;&gt;curViewer = nuke.&lt;span style=&quot;color: black;&quot;&gt;activeViewer&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;This returns the viewer &lt;strong&gt;window&lt;/strong&gt;, but since the knob that sets the layer is just a regular knob attached to the viewer &lt;strong&gt;node&lt;/strong&gt;, we need to get the actual node object from the viewer window:&lt;/p&gt;
&lt;table class=&quot;python&quot; style=&quot;border-collapse: collapse; width: 100%; border: 1px solid #054b6e; background: #f8f8f8;&quot;&gt;
&lt;tbody&gt;
&lt;tr class=&quot;li1&quot;&gt;
&lt;td style=&quot;width: 1px; background: #f0f0f0; vertical-align: top; color: #676f73; border-right: 1px dotted #dddddd; font-size: 12px; text-align: right;&quot;&gt;
&lt;pre style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;1
&lt;/pre&gt;
&lt;/td&gt;
&lt;td style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;
&lt;pre style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;&lt;span style=&quot;vertical-align: top;&quot;&gt;viewerNode = curViewer.&lt;span style=&quot;color: black;&quot;&gt;node&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/td&gt;
...</description>
			<category>Cook Book</category>
			<pubDate>Tue, 10 Aug 2010 21:13:19 +0100</pubDate>
		</item>
		<item>
			<title>Checking if a node is a gizmo</title>
			<link>http://www.nukepedia.comindex.php?option=com_content&amp;amp;id=&amp;amp;view=article</link>
			<description>&lt;p&gt;There are several ways to find if a certain node is a gizmo or not in Nuke. Here is a list of the most common ways to achieve that and their respective pitfalls if any.&lt;/p&gt;
&lt;h6&gt;Method I&lt;/h6&gt;
&lt;p&gt;This method basically checks for the &lt;strong&gt;gizmo_file&lt;/strong&gt;&amp;nbsp;knob on a node which is a knob that should only be present in nodes that are gizmos. The downside of this method is that if a user happens to add a user knob named&amp;nbsp;&lt;strong&gt;gizmo_file&lt;/strong&gt; to a node or group for some mysterious reason these will be listed as gizmos even though...</description>
			<category>Cook Book</category>
			<pubDate>Mon, 09 Aug 2010 02:04:25 +0100</pubDate>
		</item>
		<item>
			<title>Detecting if a Node's Input has an Alpha Channel</title>
			<link>http://www.nukepedia.com/expressions/detecting-if-a-nodes-input-has-an-alpha-channel/</link>
			<description>&lt;p&gt;The following expressions will check if the first input of a Node has a channel beginning with an &quot;a&quot;. &amp;nbsp;Obviously not 100% foolproof, but should get you started.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;TCL Expression:&lt;/p&gt;
&lt;p&gt;
&lt;div class=&quot;rj_insertcode&quot;&gt;
&lt;div class=&quot;rj_insertcode_tcl&quot;&gt;
&lt;div class=&quot;tcl&quot; style=&quot;border-collapse: collapse; width: 100%; border: 1px solid #054b6e; background: #f8f8f8;&quot;&gt;
&lt;pre style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;&lt;span style=&quot;vertical-align: top;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;string&lt;/span&gt; first &lt;span style=&quot;color: #483d8b;&quot;&gt;&quot;.a&quot;&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;[&lt;/span&gt;channels &lt;span style=&quot;color: black;&quot;&gt;[&lt;/span&gt;input this &lt;span style=&quot;color: #ff4500;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;gt;&lt;/span&gt;-&lt;span style=&quot;color: #ff4500;&quot;&gt;1&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt; &lt;/p&gt;
&lt;/p&gt;
&lt;p&gt;Python Expression:&lt;/p&gt;
&lt;p&gt;
&lt;div class=&quot;rj_insertcode&quot;&gt;
&lt;div class=&quot;rj_insertcode_python&quot;&gt;
&lt;div class=&quot;python&quot; style=&quot;border-collapse: collapse; width: 100%; border: 1px solid #054b6e; background: #f8f8f8;&quot;&gt;
&lt;pre style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;&lt;span style=&quot;vertical-align: top;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;[&lt;/span&gt;python &lt;span style=&quot;color: #483d8b;&quot;&gt;&quot;len(&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\[&lt;/span&gt;n for n in nuke.channels(nuke.thisNode().input(0)) if n.find(&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\&quot;&lt;/span&gt;.a&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\&quot;&lt;/span&gt;) != -1])&amp;gt;0&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;]&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt; &lt;/p&gt;
&lt;/p&gt;...</description>
			<category>Cook Book</category>
			<pubDate>Fri, 06 Aug 2010 19:36:11 +0100</pubDate>
		</item>
		<item>
			<title>Random Frames from Read node</title>
			<link>http://www.nukepedia.com/python/random-frames-from-read-node/</link>
			<description>&lt;p&gt;If you want to generate random frames from your current read node :&lt;/p&gt;
&lt;p&gt;Pace a FrameHold node below your read node&lt;/p&gt;
&lt;p&gt;Then goto first frame:- edit expression and place this code&lt;/p&gt;
&lt;table class=&quot;python&quot; style=&quot;border-collapse: collapse; width: 100%; border: 1px solid #054b6e; background: #f8f8f8;&quot;&gt;
&lt;tbody&gt;
&lt;tr class=&quot;li1&quot;&gt;
&lt;td style=&quot;width: 1px; background: #f0f0f0; vertical-align: top; color: #676f73; border-right: 1px dotted #dddddd; font-size: 12px; text-align: right;&quot;&gt;
&lt;pre style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;1&lt;br /&gt;&lt;/pre&gt;
&lt;/td&gt;
&lt;td style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;
&lt;pre style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;int( random(frame) * (last_frame-first_frame+1) + first_frame ) )&lt;/pre&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;...</description>
			<category>Cook Book</category>
			<pubDate>Fri, 06 Aug 2010 11:07:38 +0100</pubDate>
		</item>
		<item>
			<title>AnimationCurve and AnimationKey objects</title>
			<link>http://www.nukepedia.com/python/animationcurve-and-animationkey-objects/</link>
			<description>&lt;h3&gt;AnimationCurve Objects&lt;/h3&gt;
&lt;strong&gt;AnimationCurve &lt;/strong&gt;objects contain the animation data of a given animated knob, and can be accessed using a knob’s &lt;strong&gt;.animation()&lt;/strong&gt; or &lt;strong&gt;.animations()&lt;/strong&gt; methods.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;NOTE:&lt;/strong&gt; AnimationCurves can be created manually using Python, but for the purposes of this article, we will assume they all come from pre-animated knobs.&lt;br /&gt;&lt;br /&gt;
&lt;div class=&quot;rj_insertcode&quot;&gt;
&lt;div class=&quot;rj_insertcode_python&quot;&gt;
&lt;table class=&quot;python&quot; style=&quot;border-collapse: collapse; width: 100%; border: 1px solid #054b6e; background: none repeat scroll 0% 0% #f8f8f8;&quot;&gt;
&lt;tbody&gt;
&lt;tr class=&quot;li1&quot;&gt;
&lt;td style=&quot;width: 1px; background: none repeat scroll 0% 0% #f0f0f0; vertical-align: top; color: #676f73; border-right: 1px dotted #dddddd; font-size: 12px; text-align: right;&quot;&gt;
&lt;pre style=&quot;margin: 0pt; background: none repeat scroll 0% 0% transparent; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;1&lt;br /&gt;2&lt;br /&gt;3&lt;br /&gt;4&lt;br /&gt;5&lt;br /&gt;6&lt;br /&gt;7&lt;br /&gt;&lt;/pre&gt;
&lt;/td&gt;
&lt;td style=&quot;margin: 0pt; background: none repeat scroll 0% 0% transparent; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;
&lt;pre style=&quot;margin: 0pt; background: none repeat scroll 0% 0% transparent; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;&lt;span style=&quot;vertical-align: top;&quot;&gt;g1 = nuke.&lt;span style=&quot;color: black;&quot;&gt;toNode&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #483d8b;&quot;&gt;&quot;Grade1&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;vertical-align: top;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;vertical-align: top;&quot;&gt;gBlack = g1&lt;span style=&quot;color: black;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #483d8b;&quot;&gt;'blackpoint'&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;]&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;vertical-align: top;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;vertical-align: top;&quot;&gt;anim = gBlack.&lt;span style=&quot;color: black;&quot;&gt;animation&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #ff4500;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;vertical-align: top;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;vertical-align: top;&quot;&gt;&lt;span style=&quot;color: #ff7700; font-weight: bold;&quot;&gt;print&lt;/span&gt; anim&lt;/span&gt;&lt;/pre&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;img src=&quot;images/users/nathanrusch/AnimCurvesAndKeys/CurvesAndKeys_01.jpg&quot; alt=&quot;CurvesAndKeys_01&quot; width=&quot;535&quot; height=&quot;21&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Here is the curve in questi...</description>
			<category>Cook Book</category>
			<pubDate>Tue, 20 Jul 2010 18:56:13 +0100</pubDate>
		</item>
		<item>
			<title>Notes for Python for Artists - Python Panel UI video tutorial</title>
			<link>http://www.nukepedia.com/python/notes-for-python-for-artists-python-panel-ui-video-tutorial/</link>
			<description>&lt;p&gt; &lt;/p&gt;
&lt;table class=&quot;python&quot; style=&quot;border-collapse: collapse; width: 100%; border: 1px solid #054b6e; background: #f8f8f8;&quot;&gt;
&lt;tbody&gt;
&lt;tr class=&quot;li1&quot;&gt;
&lt;td style=&quot;width: 1px; background: #f0f0f0; vertical-align: top; color: #676f73; border-right: 1px dotted #dddddd; font-size: 12px; text-align: right;&quot;&gt;
&lt;pre style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
&lt;/pre&gt;
&lt;/td&gt;
&lt;td style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;
&lt;pre style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;&lt;span style=&quot;vertical-align: top;&quot;&gt;&lt;span style=&quot;color: #ff7700; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #dc143c;&quot;&gt;re&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;vertical-align: top;&quot;&gt;&lt;span style=&quot;color: #ff7700; font-weight: bold;&quot;&gt;class&lt;/span&gt; SearchReplacePanel&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt; nukescripts.&lt;span style=&quot;color: black;&quot;&gt;PythonPanel&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;:&lt;/span&gt;
&lt;span style=&quot;vertical-align: top;&quot;&gt;    &lt;span style=&quot;color: #ff7700; font-weight: bold;&quot;&gt;def&lt;/span&gt; &lt;span style=&quot;color: #0000cd;&quot;&gt;__init__&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt; &lt;span style=&quot;color: #008000;&quot;&gt;self&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;:&lt;/span&gt;
&lt;span style=&quot;vertical-align: top;&quot;&gt;        nukescripts.&lt;span style=&quot;color: black;&quot;&gt;PythonPanel&lt;/span&gt;.&lt;span style=&quot;color: #0000cd;&quot;&gt;__init__&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt; &lt;span style=&quot;color: #008000;&quot;&gt;self&lt;/span&gt;, &lt;span style=&quot;color: #483d8b;&quot;&gt;'Search and Replace'&lt;/span&gt;, &lt;span style=&quot;color: #483d8b;&quot;&gt;'com.ohufx.SearchReplace'&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;vertical-align: top;&quot;&gt;&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;vertical-align: top;&quot;&gt;        &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# CREATE KNOBS&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;vertical-align: top;&quot;&gt;        &lt;span style=&quot;color: #008000;&quot;&gt;self&lt;/span&gt;.&lt;span style=&quot;color: black;&quot;&gt;nodesChoice&lt;/span&gt; = nuke.&lt;span style=&quot;color: black;&quot;&gt;Enumeration_Knob&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt; &lt;span style=&quot;color: #483d8b;&quot;&gt;'nodes'&lt;/span&gt;, &lt;span style=&quot;color: #483d8b;&quot;&gt;'Source Nodes'&lt;/span&gt;, &lt;span style=&quot;color: black;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #483d8b;&quot;&gt;'all'&lt;/span&gt;, &lt;span style=&quot;color: #483d8b;&quot;&gt;'selected'&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;vertical-align: top;&quot;&gt;        &lt;span style=&quot;color: #008000;&quot;&gt;self&lt;/span&gt;.&lt;span style=&quot;color: black;&quot;&gt;searchStr&lt;/span&gt; = nuke.&lt;span style=&quot;color: black;&quot;&gt;String_Knob&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #483d8b;&quot;&gt;'searchStr'&lt;/span&gt;, &lt;span style=&quot;color: #483d8b;&quot;&gt;'Search fo...</description>
			<category>Cook Book</category>
			<pubDate>Mon, 19 Jul 2010 01:12:42 +0100</pubDate>
		</item>
		<item>
			<title>Knob Animation and Python: A Primer</title>
			<link>http://www.nukepedia.com/python/knob-animation-and-python-a-primer/</link>
			<description>&lt;p&gt;Interact with animated knobs and animated curves using Python.&lt;/p&gt;
</description>
			<category>Cook Book</category>
			<pubDate>Thu, 08 Jul 2010 06:27:04 +0100</pubDate>
		</item>
		<item>
			<title>Enter the Matrix Knob</title>
			<link>http://www.nukepedia.com/expressions/enter-the-matrix-knob/</link>
			<description>&lt;p&gt;A new feature in Nuke 6.1 is the exposed matrix knob on all 3D nodes that allow a transform (such as ReadGeo, Axis, Camera etc).&amp;nbsp; This contains all the transformation data for the node in a 4x4 matrix expressed as homogenous coordinates.&lt;/p&gt;
&lt;p&gt;&lt;img style=&quot;margin: 10px;&quot; src=&quot;images/users/michael/matrix01.png&quot; alt=&quot;matrix01&quot; width=&quot;548&quot; height=&quot;521&quot; /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Local Data and World Data&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;The transformation data is displayed as a local matrix and a world matrix.&amp;nbsp; The local matrix contains the local transform data and reflects the values you have set in the regular transform knobs, however you can override them...</description>
			<category>Cook Book</category>
			<pubDate>Mon, 05 Jul 2010 08:13:42 +0100</pubDate>
		</item>
		<item>
			<title>Notes for Python for Artists - Simple User Interfaces video tutorial</title>
			<link>http://www.nukepedia.com/python/notes-for-python-for-artists-simple-user-interfaces-video-tutorial/</link>
			<description>&lt;div&gt;Nuke has pretty simple python commands that let you create simple user interfaces - without having to dive too much into python panels.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Print a pop up mesage:&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;rj_insertcode&quot;&gt;
&lt;div class=&quot;rj_insertcode_python&quot;&gt;
&lt;table class=&quot;python&quot; style=&quot;border-collapse: collapse; width: 100%; border: 1px solid #054b6e; background: #f8f8f8;&quot;&gt;
&lt;tbody&gt;
&lt;tr class=&quot;li1&quot;&gt;
&lt;td style=&quot;width: 1px; background: #f0f0f0; vertical-align: top; color: #676f73; border-right: 1px dotted #dddddd; font-size: 12px; text-align: right;&quot;&gt;
&lt;pre style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;1
&lt;/pre&gt;
&lt;/td&gt;
&lt;td style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;
&lt;pre style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;&lt;span style=&quot;vertical-align: top;&quot;&gt;nuke.&lt;span style=&quot;color: black;&quot;&gt;message&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt; &lt;span style=&quot;color: #483d8b;&quot;&gt;'yay'&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;rj_insertcode&quot;&gt;
&lt;div class=&quot;rj_insertcode_python&quot;&gt;
&lt;table class=&quot;python&quot; style=&quot;border-collapse: collapse; width: 100%; border: 1px solid #054b6e; background: #f8f8f8;&quot;&gt;
&lt;tbody&gt;
&lt;tr class=&quot;li1&quot;&gt;
&lt;td style=&quot;width: 1px; background: #f0f0f0; vertical-align: top; color: #676f73; border-right: 1px dotted #dddddd; font-size: 12px; text-align: right;&quot;&gt;
&lt;pre style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;1
2
&lt;/pre&gt;
&lt;/td&gt;
&lt;td style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;
&lt;pre style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;&lt;span style=&quot;vertical-align: top;&quot;&gt;txt = &lt;span style=&quot;color: #008000;&quot;&gt;str&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt; &lt;span style=&quot;color: #008000;&quot;&gt;len&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt; nuke.&lt;span style=&quot;color: black;&quot;&gt;allNodes&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;vertical-align: top;&quot;&gt;nuke.&lt;span style=&quot;color: black;&quot;&gt;message&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt; txt + &lt;span style=&quot;color: #483d8b;&quot;&gt;' nodes in the script'&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;img style=&quot;display: block; margin-left: auto; margin-right: auto;&quot; src=&quot;images/users/scottchambers/Screen_shot_2010-07-05_at_12.17.58_PM.png&quot; alt=&quot;Screen_shot_2010-07-05_at_12.17.58_PM&quot; width=&quot;687&quot; height=&quot;322&quot; /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;strong&gt;Nuke.display method:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Nuke.display uses four arguments (s,o,t,w), explanation from running help (nuke.display) : &lt;br /&gt;&lt;br /&gt;Creates a dialog box showing the result of a...</description>
			<category>Cook Book</category>
			<pubDate>Mon, 05 Jul 2010 02:08:38 +0100</pubDate>
		</item>
		<item>
			<title>Calling Python from an expression</title>
			<link>http://www.nukepedia.com/expressions/calling-python-from-an-expression/</link>
			<description>&lt;p&gt;You can easily call Python methods from within expressions, similar to calling Tcl expressions from Python via nuke.tcl()&lt;/p&gt;
&lt;p&gt;To do this, you use the &quot;python&quot; Tcl method, for example:&lt;/p&gt;
&lt;div class=&quot;rj_insertcode&quot;&gt;
&lt;div class=&quot;rj_insertcode_python&quot;&gt;
&lt;div class=&quot;python&quot; style=&quot;border-collapse: collapse; width: 100%; border: 1px solid #054b6e; background: #f8f8f8;&quot;&gt;
&lt;pre style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;&lt;span style=&quot;vertical-align: top;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;[&lt;/span&gt;python nuke.&lt;span style=&quot;color: black;&quot;&gt;thisNode&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;.&lt;span style=&quot;color: black;&quot;&gt;metadata&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;).keys()&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;]&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;While this is mostly straight-forward, there are a few things to be aware of..&lt;/p&gt;
&lt;p&gt;Square brackets in the Python expression clash with Tcl's syntax, or should either be escaped:&lt;/p&gt;
&lt;div class=&quot;rj_insertcode&quot;&gt;
&lt;div class=&quot;rj_insertcode_python&quot;&gt;
&lt;div class=&quot;python&quot; style=&quot;border-collapse: collapse; width: 100%; border: 1px solid #054b6e; background: #f8f8f8;&quot;&gt;
&lt;pre style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;&lt;span style=&quot;vertical-align: top;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;[&lt;/span&gt;python nuke.&lt;span style=&quot;color: black;&quot;&gt;thisNode&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;.&lt;span style=&quot;color: black;&quot;&gt;metadata&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;\&lt;span style=&quot;color: black;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #483d8b;&quot;&gt;'input/filename'&lt;/span&gt;\&lt;span style=&quot;color: black;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;]&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;..or enclose t...</description>
			<category>Cook Book</category>
			<pubDate>Sun, 04 Jul 2010 09:45:18 +0100</pubDate>
		</item>
		<item>
			<title>Dealing with NaN pixels</title>
			<link>http://www.nukepedia.com/expressions/dealing-with-nan-pixels/</link>
			<description>&lt;p&gt;Here's an approach to dealing with the occasional &lt;a href=&quot;http://en.wikipedia.org/wiki/NaN&quot;&gt;NaN&lt;/a&gt; pixel that can for example crop up when outputting through the ScanlineRender node.&lt;/p&gt;
&lt;p&gt;So what does it look like and why is it bad?&amp;nbsp; On the left, the pixel sampler has selected a single NaN pixel being output through the ScanlineRender node and you can see that the information being displayed for that pixel is &quot;nan&quot; in each channel.&amp;nbsp; And on the right is with VectorBlur added:&lt;/p&gt;
&lt;p&gt;&lt;img style=&quot;margin-top: 10px; margin-right: 10px; margin-bottom: 10px; margin-left: 0px;&quot; src=&quot;images/users/michael/nan01.png&quot; alt=&quot;nan01&quot; width=&quot;381&quot; height=&quot;237&quot; /&gt;&lt;img style=&quot;margin-top: 10px; margin-right: 10px; margin-bottom: 10px; margin-left: 0px;&quot; src=&quot;images/users/michael/nan02.png&quot; alt=&quot;nan01&quot; width=&quot;381&quot; height=&quot;237&quot; /&gt;&lt;/p&gt;
&lt;p&gt;As you can see any kind of filtering will turn up as nast...</description>
			<category>Cook Book</category>
			<pubDate>Sun, 04 Jul 2010 08:33:38 +0100</pubDate>
		</item>
		<item>
			<title>Use of expressions to modify animation curves</title>
			<link>http://www.nukepedia.com/expressions/use-of-expressions-to-modify-animation-curves/</link>
			<description>&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Timing changes can be quite a headache in most compositing packages.&lt;br /&gt;Here's a few cases where the use of expressions can be of great help when dealing with time modifiers (frame holds, time offsets, time warps…)&lt;/p&gt;
&lt;hr /&gt;
&lt;br /&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;strong&gt;1- Freezing an animation to a certain frame (FrameHold)&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The syntax &lt;strong&gt;&lt;em&gt;curve(frame)&lt;/em&gt;&lt;/strong&gt; is one of the simplest and yet most useful ways to handle time within an expression. It means &quot;take the value of this animation (curve), at this frame&quot;.&lt;br /&gt;This can be used on any animated knob, but it's mo...</description>
			<category>Cook Book</category>
			<pubDate>Sun, 04 Jul 2010 03:04:35 +0100</pubDate>
		</item>
		<item>
			<title>External Recipes</title>
			<link>http://www.nukepedia.com/python/external-recipes/</link>
			<description>&lt;p&gt;This is a great source for python snippets:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://code.activestate.com/recipes/langs/python/&quot; target=&quot;_self&quot;&gt;http://code.activestate.com/recipes/langs/python/&lt;/a&gt;&lt;/p&gt;</description>
			<category>Cook Book</category>
			<pubDate>Thu, 01 Jul 2010 09:39:42 +0100</pubDate>
		</item>
		<item>
			<title>Switching Nodes with $gui variable</title>
			<link>http://www.nukepedia.com/expressions/switching-nodes-with-gui-variable/</link>
			<description>&lt;div id=&quot;_mcePaste&quot;&gt;
&lt;h4&gt;Switch node states or node tree branches automatically between GUI and render use with the $gui variable&lt;/h4&gt;
&lt;br /&gt;Have a slow operator or process in your script that you want to be off when working but on when you send it to the farm or render locally via the command line? Having trouble remembering to switch these functions on? Or do you want to have read nodes with local paths / server paths that switch automatically when sent to a farm?&lt;/div&gt;
&lt;div id=&quot;_mcePaste&quot;&gt;Now you can!&lt;/div&gt;
&lt;div id=&quot;_mcePaste&quot;&gt;With the $gui expression. In the example below I...</description>
			<category>Cook Book</category>
			<pubDate>Mon, 14 Jun 2010 10:00:22 +0100</pubDate>
		</item>
		<item>
			<title>setting context to node, knob or curve object</title>
			<link>http://www.nukepedia.com/python/setting-context-to-node-knob-or-curve-object/</link>
			<description>I often need to run code from within a group or gizmo instead of the top level (so nuke.allNodes() would return all nodes in a group rather than the top level for instance).&lt;br /&gt;For groups I used to doe the ol' future import thingy:&lt;br /&gt;
&lt;div class=&quot;rj_insertcode&quot;&gt;
&lt;div class=&quot;rj_insertcode_python&quot;&gt;
&lt;table class=&quot;python&quot; style=&quot;border-collapse: collapse; width: 100%; border: 1px solid #054b6e; background: #f8f8f8;&quot;&gt;
&lt;tbody&gt;
&lt;tr class=&quot;li1&quot;&gt;
&lt;td style=&quot;width: 1px; background: #f0f0f0; vertical-align: top; color: #676f73; border-right: 1px dotted #dddddd; font-size: 12px; text-align: right;&quot;&gt;
&lt;pre style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;1
2
3
&lt;/pre&gt;
&lt;/td&gt;
&lt;td style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;
&lt;pre style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;&lt;span style=&quot;vertical-align: top;&quot;&gt;&lt;span style=&quot;color: #ff7700; font-weight: bold;&quot;&gt;from&lt;/span&gt; &lt;span style=&quot;color: #dc143c;&quot;&gt;__future__&lt;/span&gt; &lt;span style=&quot;color: #ff7700; font-weight: bold;&quot;&gt;import&lt;/span&gt; with_statement&lt;/span&gt;
&lt;span style=&quot;vertical-align: top;&quot;&gt;&lt;span style=&quot;color: #ff7700; font-weight: bold;&quot;&gt;with&lt;/span&gt; nuke.&lt;span style=&quot;color: black;&quot;&gt;toNode&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt; &lt;span style=&quot;color: #483d8b;&quot;&gt;'MyGroup'&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;:&lt;/span&gt;
&lt;span style=&quot;vertical-align: top;&quot;&gt;	&lt;span style=&quot;color: #ff7700; font-weight: bold;&quot;&gt;print&lt;/span&gt; nuke.&lt;span style=&quot;color: black;&quot;&gt;allNodes&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt; &lt;/p&gt;
&lt;img src=&quot;images/users/frank/runIn_01.png&quot; alt=&quot;runIn_01&quot; width=&quot;928&quot; height=&quot;496&quot; /&gt;&lt;br /&gt;&lt;br /&gt;However, this won't work with gizmos:&lt;br /&gt;&lt;img src=&quot;images/users/frank/runIn_02.png&quot; alt=&quot;runIn_02&quot; width=&quot;417&quot; height=&quot;261&quot; /&gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Here you can use nuke.runIn() like so:&lt;br /&gt;
&lt;div class=&quot;rj_insertcode&quot;&gt;
&lt;div class=&quot;rj_insertcode_python&quot;&gt;
&lt;table class=&quot;python&quot; style=&quot;border-collapse: collapse; width: 100%; border: 1px solid #054b6e; background: #f8f8f8;&quot;&gt;
&lt;tbody&gt;
&lt;tr class=&quot;li1&quot;&gt;
&lt;td style=&quot;width: 1px; background: #f0f0f0; vertical-align: top; color: #676f73; border-right: 1px dotted #dddddd; font-size: 12px; text-align: right;&quot;&gt;
&lt;pre style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;1
2
3
&lt;/pre&gt;
&lt;/td&gt;
&lt;td style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;
&lt;pre style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;&lt;span style=&quot;vertical-align: top;&quot;&gt;&lt;span style=&quot;color: #ff7700; font-weight: bold;&quot;&gt;def&lt;/span&gt; getAllNodes&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;:&lt;/span&gt;
&lt;span style=&quot;vertical-align: top;&quot;&gt;    ...</description>
			<category>Cook Book</category>
			<pubDate>Mon, 14 Jun 2010 00:27:34 +0100</pubDate>
		</item>
		<item>
			<title>Getting the index context of a Knob</title>
			<link>http://www.nukepedia.com/python/getting-the-index-context-of-a-knob/</link>
			<description>&lt;strong&gt; &lt;br /&gt;Scope:&lt;/strong&gt;&lt;br /&gt;There seems to be no Knob python method to get the context of a&amp;nbsp;specific index inside a knob with multiple values (like an XYZ_Knob).&lt;br /&gt;&lt;br /&gt;&lt;em&gt;nuke.thisKnob()&lt;/em&gt;&amp;nbsp;&amp;nbsp;would get you the knob something is executed from, but&amp;nbsp;not the index within the knob.&lt;br /&gt;&lt;br /&gt;If, for example, you call a command in the Animation menu by right&amp;nbsp;clicking on translate.y, or box.r, you'll only get the translate or&amp;nbsp;the box knob, but not the subfield inside it.&lt;br /&gt;&lt;br /&gt;However, The &quot;animations&quot; command in TCL does see...</description>
			<category>Cook Book</category>
			<pubDate>Fri, 11 Jun 2010 06:01:42 +0100</pubDate>
		</item>
		<item>
			<title>value vs knob command</title>
			<link>http://www.nukepedia.com/tcl/value-vs-knob-command/</link>
			<description>&lt;p&gt;The simplicity of tcl's command based nature makes it nice and easy to use in Nuke's text knobs, such as labels (you can actually use tcl that way in pretty much any knob in Nuke that can take an expression).&lt;br /&gt;The &lt;span style=&quot;background-color: #ffffff;&quot;&gt;value&lt;/span&gt; and knob commands in particular are very handy to show node properties in the DAG.&lt;br /&gt;In a node's label, simply type the following:&lt;/p&gt;
&lt;div class=&quot;rj_insertcode&quot;&gt;
&lt;div class=&quot;rj_insertcode_cpp&quot;&gt;
&lt;table class=&quot;cpp&quot; style=&quot;border-collapse: collapse; width: 100%; border: 1px solid #054b6e; background: #f8f8f8;&quot;&gt;
&lt;tbody&gt;
&lt;tr class=&quot;li1&quot;&gt;
&lt;td style=&quot;width: 1px; background: #f0f0f0; vertical-align: top; color: #676f73; border-right: 1px dotted #dddddd; font-size: 12px; text-align: right;&quot;&gt;
&lt;pre style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;1
&lt;/pre&gt;
&lt;/td&gt;
&lt;td style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;
&lt;pre style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;&lt;span style=&quot;vertical-align: top;&quot;&gt;&lt;span style=&quot;color: #008000;&quot;&gt;[&lt;/span&gt;value &lt;span style=&quot;color: #000080;&quot;&gt;&amp;lt;&lt;/span&gt;knob name&lt;span style=&quot;color: #000080;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;]&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Here is an example for the exposure node's &quot;mode&quot; knob:&lt;/p&gt;
&lt;div class=&quot;rj_insertcode&quot;&gt;
&lt;div class=&quot;rj_insertcode_tcl&quot;&gt;
&lt;table class=&quot;tcl&quot; style=&quot;border-collapse: collapse; width: 100%; border: 1px solid #054b6e; background: #f8f8f8;&quot;&gt;
&lt;tbody&gt;
&lt;tr class=&quot;li1&quot;&gt;
&lt;td style=&quot;width: 1px; background: #f0f0f0; vertical-align: top; color: #676f73; border-right: 1px dotted #dddddd; font-size: 12px; text-align: right;&quot;&gt;
&lt;pre style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;1
2
&lt;/pre&gt;
&lt;/td&gt;
&lt;td style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;
&lt;pre style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;&lt;span style=&quot;vertical-align: top;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;[&lt;/span&gt;value mode&lt;span style=&quot;color: black;&quot;&gt;]&lt;/span&gt;&lt;/span&gt;...</description>
			<category>Cook Book</category>
			<pubDate>Sat, 05 Jun 2010 10:39:53 +0100</pubDate>
		</item>
		<item>
			<title>transformThis - example for smart node creation</title>
			<link>http://www.nukepedia.com/python/transformthis-example-for-smart-node-creation/</link>
			<description>Here is &amp;nbsp;simple recipe for your menu.py, to make a hotkey that creates a normal &lt;span style=&quot;background-color: #339966;&quot;&gt;Transform&lt;/span&gt; node for 2D nodes (just like th default 't' does), but if a 3D node is selected, it will create a &lt;span style=&quot;background-color: #339966;&quot;&gt;TransformGeo&lt;/span&gt; node instead:&lt;br /&gt;&lt;br /&gt;To find out if the selected node is a 3D node, I usually just check for a knob that 2D nodes never have. Let's use the 'render_mode' knob:&lt;br /&gt;
&lt;div class=&quot;rj_insertcode&quot;&gt;
&lt;div class=&quot;rj_insertcode_python&quot;&gt;
&lt;table class=&quot;python&quot; style=&quot;border-collapse: collapse; width: 100%; border: 1px solid #054b6e; background: #f8f8f8;&quot;&gt;
&lt;tbody&gt;
&lt;tr class=&quot;li1&quot;&gt;
&lt;td style=&quot;width: 1px; background: #f0f0f0; vertical-align: top; color: #676f73; border-right: 1px dotted #dddddd; font-size: 12px; text-align: right;&quot;&gt;
&lt;pre style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;1
&lt;/pre&gt;
&lt;/td&gt;
&lt;td style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;
&lt;pre style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;&lt;span style=&quot;vertical-align: top;&quot;&gt;&lt;span style=&quot;color: #483d8b;&quot;&gt;'render_mode'&lt;/span&gt; &lt;span style=&quot;color: #ff7700; font-weight: bold;&quot;&gt;in&lt;/span&gt; nuke.&lt;span style=&quot;color: black;&quot;&gt;selectedNode&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;.&lt;span style=&quot;color: black;&quot;&gt;knobs&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt; &lt;/p&gt;
&amp;nbsp;This returns a boolean (True or False) so we can use ...</description>
			<category>Cook Book</category>
			<pubDate>Sat, 05 Jun 2010 00:59:38 +0100</pubDate>
		</item>
		<item>
			<title>Smoothing Animation Curves</title>
			<link>http://www.nukepedia.com/expressions/smoothing-animation-curves/</link>
			<description>&lt;p&gt;Smoothing an animation curve can be done through the animation curve's “Edit/Filter” option.&lt;br /&gt;However, this will move the original keyframes which seems a little destructive and doesn't allow a nice fine tuning workflow (other than jumping up and down on the undo button and trying again with a different value).&lt;br /&gt;
&lt;hr /&gt;
So here is an expression based solution that uses a user knob value to smooth the curve “live”:&lt;br /&gt;&lt;br /&gt;In my Tracker node I have this animation curve:&lt;br /&gt;&lt;img src=&quot;images/users/frank/curveSmoothing_1.png&quot; alt=&quot;curveSmoothing_1&quot; width=&quot;596&quot; height=&quot;260&quot; /&gt;&lt;br /&gt;&lt;br /&gt;I have also created two floating poin...</description>
			<category>Cook Book</category>
			<pubDate>Thu, 03 Jun 2010 12:00:15 +0100</pubDate>
		</item>
		<item>
			<title>SwitchMatte</title>
			<link>http://www.nukepedia.com/gizmos/switchmatte/</link>
			<description>&lt;ul&gt;
&lt;li&gt;create whatever nodes you need for a certain effect. I.e. let's build Shake's SwitchMatte real quick:&lt;br /&gt;&lt;img src=&quot;images/users/frank/basicOutline_1.png&quot; alt=&quot;basicOutline_1&quot; width=&quot;411&quot; height=&quot;294&quot; /&gt;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;select only the node that should be part of the effect and go to Other/Group (or cmd/ctrl + g or ).&lt;br /&gt;&lt;img src=&quot;images/users/frank/basicOutline_2.png&quot; alt=&quot;basicOutline_2&quot; width=&quot;565&quot; height=&quot;378&quot; /&gt;&lt;br /&gt;The selected nodes will be tugged away into a group node. No worries, you can always open up the group to get to the nodes if you need.&lt;/li&gt;
&lt;li&gt;&amp;nbsp;To quickly build an interface for your group node to control the internal nodes, right click anywhere into the Group node's panel and chose 'Manager...</description>
			<category>Cook Book</category>
			<pubDate>Sun, 30 May 2010 10:09:09 +0100</pubDate>
		</item>
		<item>
			<title>inrange - Check if a Frame is Within a Certain Range</title>
			<link>http://www.nukepedia.com/expressions/inrange-check-if-a-frame-is-within-a-certain-range/</link>
			<description>&lt;p&gt;Checking whether a certain frame or number is within a given range is often needed, and often resulting expressions are unnecessarily complex. Here is a simple solution:&lt;br /&gt;&lt;br /&gt;This will get you the script's current frame:&lt;/p&gt;
&lt;div class=&quot;rj_insertcode&quot;&gt;
&lt;div class=&quot;rj_insertcode_cpp&quot;&gt;
&lt;table class=&quot;cpp&quot; style=&quot;border-collapse: collapse; width: 100%; border: 1px solid #054b6e; background: #f8f8f8;&quot;&gt;
&lt;tbody&gt;
&lt;tr class=&quot;li1&quot;&gt;
&lt;td style=&quot;width: 1px; background: #f0f0f0; vertical-align: top; color: #676f73; border-right: 1px dotted #dddddd; font-size: 12px; text-align: right;&quot;&gt;
&lt;pre style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;1
&lt;/pre&gt;
&lt;/td&gt;
&lt;td style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;
&lt;pre style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;&lt;span style=&quot;vertical-align: top;&quot;&gt;frame&lt;/span&gt;&lt;/pre&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt; &lt;/p&gt;
&amp;nbsp;this will return true if the current frame is between 1 and 10 (inclusive):&lt;br /&gt;
&lt;div class=&quot;rj_insertcode&quot;&gt;
&lt;div class=&quot;rj_insertcode_cpp&quot;&gt;
&lt;table class=&quot;cpp&quot; style=&quot;border-collapse: collapse; width: 100%; border: 1px solid #054b6e; background: #f8f8f8;&quot;&gt;
&lt;tbody&gt;
&lt;tr class=&quot;li1&quot;&gt;
&lt;td style=&quot;width: 1px; background: #f0f0f0; vertical-align: top; color: #676f73; border-right: 1px dotted #dddddd; font-size: 12px; text-align: right;&quot;&gt;
&lt;pre style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;1
&lt;/pre&gt;
&lt;/td&gt;
&lt;td style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;
&lt;pre style=&quot;margin: 0; background: none; vertical-align: top; padding: 0px 4px; font-size: 12px;&quot;&gt;&lt;span style=&quot;vertical-align: top;&quot;&gt;inrange&lt;span style=&quot;color: #008000;&quot;&gt;(&lt;/span&gt; frame, &lt;span style=&quot;color: #0000dd;&quot;&gt;1&lt;/span&gt;, &lt;span style=&quot;color: #0000dd;&quot;&gt;10&lt;/span&gt; &lt;span style=&quot;color: #008000;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt; &lt;/p&gt;
The latter is handy in nodes' disable knob to switch them on and off depending on a frame range:...</description>
			<category>Cook Book</category>
			<pubDate>Sun, 30 May 2010 07:45:23 +0100</pubDate>
		</item>
	</channel>
</rss>

