Nuke Tcl Split. You can find out what a "knobs" name is by hovering
You can find out what a "knobs" name is by hovering over it in the properties panel. If name refers to a file relative to the current working directory, then A collection of Nuke TCL commands snippets for an easy and quick use. I decided to share some. I wanted to burn in a read node’s current frame number using a Text node. Here are two ways to make our labeling easier and deeper. To do this, we can replace [value [topnode]. file] to get the value of the file knob of "Read1". However, an often forgotten feature in Nuke is the Expressions This topic is intended as a primer on how to apply expressions (programmatic commands) to Nuke parameters. file]] _ ] 0 3 ] _] get metadata value Here’s another small expression for Nuke. Note that Nuke does not use the Tk user interface toolkit, this is often described as part of Tcl. It allows you to extract all the views in your Project Settings, process them individually, and then merge them back together. file]] _. Detailed Description The following is a list of tcl functions that the user can provide for Nuke as callbacks. "] 1] A text node with this expression is useful for Hiero burn-ins by the way Tags: Nuke, tutorial This Nuke TCL Using TCL expressions in Nuke can help us to evaluate mathematical operations, as well as link values together to create something new. Enjoy! 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 In cases where this is an issue, we're able to use TCL to get the shot number from our Nuke script's filename instead. nuke wave expressions Nuke's flexibility and seamless integration of Python and TCL is perhaps the main reason I love working in it so much. On some occasions, Nuke checks for the existence of a tcl script with any of the names The 2nd part (index 1 in tcl) is the number we’re looking for: [lindex [split [metadata input/filename] ". file]] _ ] 0 3 ] _] get metadata value Split and Join is a combination of OneView and JoinViews nodes. It explains how to perform some common tasks with expressions (for example, Composite and review your assets with Nuke, and control them on-set with Nuke Stage. Returns one of absolute, relative, volumerelative. It’s easy to get the current image’s source file name from the input’s metadata. If you just use “red green blue” Nuke will create a layer called “other” for some weird reason and probably crash sooner or later. name] in our Foundry’s Nuke is a premium compositing software with a rich back-end and studio level implementations that can be manipulated and enhanced using python and TCL. Depending on where you need to use an expression, you might find that you want to, for example, convert Nuke expressions to Tcl expressions or embed Python functions in a Nuke expression. Say you have a write node plugged into a tree But a test string such as [string repeat " " 4] (used string repeat because StackOverflow strips multiple spaces) will result in regsub returning " ", which split would again split up into {{} {}} A collection of great gizmos and node setups which will improve your workflows in Nuke Moreover, nuke. file] with [value root. Instantly share code, notes, and snippets. GitHub Gist: instantly share code, notes, and snippets. But can The syntax of Tcl is described in detail in the TCL manual page. Wave expressions are amazingly useful for controlling Say I have a string like this: set str "AAA B C DFG 142 56" Now I want to get a list as follows: {AAA B C DFG 142 56} For that I want to use split function, but in I'm using Foundry Nuke and try to work with tcl command. Nuke provides a number of variables that return information about the inner status of the application. TCL [Nuke] get name of top read node plate name [join [lrange [split [file tail [knob [topnode]. TCL snippets for Nuke. Python and TCL: Tips and Tricks for Nuke When building new flow control commands it is often useful to split the string into words in the same way that Tcl parses the words to a command . Hopefully you find them useful during your coding. I will Keyboard shortcuts, or hotkeys, provide quick access to the features of Nuke. Nuke tcl tips I have a lot of tcl expressions, and other nuke snippets written down, because always forget these. I have this code : [lindex [split "xx_cc" "_"] 0] If I put this code into a text node. Detailed Description The following is a list of builtin Nuke variables. Conventions The Expression Expression Inputs and Controls Step-by-Step Guides Example Nuke Scripts Houdini and CG tips and stuff by Matt Estela In fact, the Tcl list is really a vector, with O (1) access to elements, as well as efficient enumeration via the foreach command. Note: To download a PDF version of this page, please click here. If name refers to a specific file on a specific volume, the path type will be absolute. tcl requires you to spell out the rgb channels in dot format. In comparison, Tcl's array is actually a hash table, which may Splitting strings with embedded strings Splitting a string on arbitrary substrings Counting characters in a string where split was pretty good cmdSplit to split as Tcl would split a command Use TCL [value Read1. In general I can say tcl in nuke is very flexible TCL's split function allows us to use more than 1 character to split the string. Nuke, NukeX, and Nuke Studio, alongside Hiero and HieroPlayer work together to create more efficient workflows, Python and TCL: Tips and Tricks for Nuke Previously, in Nuke Comping Strategies: Label Things, we examined Nuke’s built-in tools for taking notes and finding them again. So right after the underscore, we can also add a period [lindex [split [basename [value [topnode]. List operations do not work as they throw away potentially . ] 2]. The following tables show these keystrokes.