Nuke and Tcl - basics I

Report this File

Th_readknobs

Views:

24,616

Updated:

May 18, 2006

Readership Level:

Intermediate

Tags:

Nuke Versions:

Platforms:

irix, linux, windows

Owner:

Language:

English

Changing knob values

syntax:


knob .
examples:

knob Blur1.size 10

knob Blur1.name BlurWithNewName




Reading knob values

To print info into the shell use "puts". This is Tcl's print command.
You will have to use square brackets to tell Tcl to evaluate the knob command first and then use the result for the puts command:


puts [knob Blur1.size]

If you want to go fancy you can pop up a message windo instead of printing into the shell:

message [knob Blur1.size]


Tutorial_next_page

Comments

Write a Comment

You must be logged in and have verified your email address to leave a comment. Login or create an account