personal menu for opening script templates

Hi!
I have several .nk files that I want to use as templates.
I want to make a python script with my own list menu with a button for every template, so when I push on the desired button a new nuke opens with the selected template.
What’s the best way for doing it into nuke?

Thank you very much!

disable autokey on bezier node creation

Hi everybody!
I’m just starting with nuke scripting and have this problem:

How can I disable autokey on every bezier node creation? It’s enabled by default and I always make mistakes when moving between different frames. I suposse that I must ovwerride the script every time I press ‘p’.

Thank you very much!

My python script for comping Nuke-maya passes

Strictly for newbies like me 🙂

Hello,

Just wrote a small script to comp Maya render passes into Nuke (refer to tutorial by Hugo at http://www.vfxtalk.com/forum/nuke-tu…ss-t19333.html)

My first try into scripting, please feel free to trash it. You can make it as a gizmo and run it. (some limitations documented in the file itself)

Attached Files
File Type: nk setupPasses.nk (2.3 KB)

nuke dev group

Has anyone spotted a google group or forum for nuke tool/plugin developers? I found the "nukeuser" group but that’s much more geared toward the crowd using nuke without writing in your own functionality.

to avoid multiples values in the list

hi,

Code:

allSelected = nuke.selectedNodes()
job={}
for n in allSelected:
    job[n]=n.Class()
    print job[n]

# Result: Bezier
Blur
Bezier
Bezier
Blur
Defocus
Defocus
Read
Grain2
Transform
Blur


I would like to avoid multiples values in the list
i want that

Blur
Bezier
Defocus
Read
Grain2
Transform

thanks,:)

adding tcl command with tcl?

hi,
while making a gizmo i need the ability to add a tcl command like this

PHP Code:


knob message [frame




with a TCL script button.

but only the result (f.e. 384) and NOT the command itself gets pasted into the message knob. this means that its no longer updated when moving the timemarker.

this should only be a simple syntax error.

any help?

thanks,
payton

ps: any python suggestions are welcome too

“os.path.join” problem with slash

Hello
I am new learning python.
So I wanted to modify a script I found on a tutorial so that’s work for my directories.
It is a script to create a Write node which create directory of my scene right where it should be.
It’s working for creating my directories on the good folders, but the things that isn’t working is the filename in my write node.
Slash are like this \ instead of like this /.
For exemple when I run it and I type in my write node, seq 10, plan 5, version 3, here is what I get:
I:/Images/Project/Compo\s10_p5\v03\s10_p5_v03.%04d.exr
it’s the line "os.path.join" which doesn’t seem right, but How could I change it?
Thanks for your help

Attached Files
File Type: txt customNode.txt (2.6 KB)

Assigning already created node to variable

I’ve got a gizmo which contains numerous nodes, and want to create a python script button which needs to access some of those nodes.. I just can’t figure out how to assign a node to a variable, unless I create it at the same time. Anyone?

Set Constant node image size

Hi,

I want to set the image width and height of a Constant node using Python. Is there an easy way to accomplish this?

Thanks in advance.

Script to animate Flag blowing in the wind?

Hi guys,

Im looking for a way to go about animating a flag (basically an image on a 3d card) in the wind,
is there a script that will create a realistic animation or is is best to animate by keyframe with a deform?

thanks guys.

-Cr0ss