Python – Swap Node

Howdy,

Does anyone know a way to swap out a node via python? Similar to the Ctrl+Shift Drop method.

Cheers,

Drew

Problem read/write AVI Files

Hello everyone,

I’m just starting on Nuke and I would like to know can I read/write .avi files. I make some research on the user guide, and on the internet … This is what I saw :
On Windows, in order to support more codecs, the AVI reader uses the DirectShow multimedia architecture. When decoding AVI files, DirectShow tries to find the appropriate codec on the system. If the codec is not available, DirectShow and Nuke are unable to open the AVI file. Note that the 64-bit version of Nuke can only use 64-bit DirectShow codecs. If you only have a 32-bit codec installed, the 64-bit version of Nuke cannot use it to open AVI files.
So I decided to install K-lite codec Pack for 64bits, because It’s the only pack with Directshow and when I try to "open" my .avi file I have an Error : Read 1.

Can I have some help please ??

stereoRig

Hi i trying to creat stereoRig in Nuke from imported Tracked camera are tracked inside the nuke.
i make it work but facing some issue’s, Here is my code….

Quote:

def stereoRig ():
a = nuke.toNode("selectedNode")
master = nuke.createNode(‘Axis’)
master[‘name’].setValue(‘master’)
left = nuke.createNode(‘Camera’)
left[‘name’].setValue(‘left’)
left.setInput(0, a)
right = nuke.createNode(‘Camera’)
right[‘name’].setValue(‘right’)
right.setInput(0, a)
left[‘translate’].setExpression(‘parent.Camera1.translate.left-parent.master.translate.left’)
left[‘rotate’].setExpression(‘parent.Camera1.rotate.left-parent.master.rotate.left’)
left[‘focal’].setExpression(‘parent.Camera1.focal’)
left[‘haperture’].setExpression(‘parent.Camera1.aperture.x’)
left[‘vaperture’].setExpression(‘parent.Camera1.aperture.y’)
right[‘translate’].setExpression(‘parent.Camera1.translate.left+pare nt.master.translate.left’)
right[‘rotate’].setExpression(‘parent.Camera1.rotate.left+parent. master.rotate.left’)
right[‘focal’].setExpression(‘parent.Camera1.focalLength’)
right[‘haperture’].setExpression(‘parent.Camera1.aperture.x’)
right[‘vaperture’].setExpression(‘parent.Camera1.aperture.y’)


Its work good in starting frames But my L&R camera will moved slightly mid and end of the frames. Is anyone correct this please.

Attached Files
File Type: nk stereoCam_test.nk (3.6 KB)

Trouble installing Nuke gizmos

Hi,
I just can’t seem to figure out how to successfully install any custom Nuke gizmos that I’ve downloaded.

So far, I’ve created a ‘menu’py’ file in my ‘.nuke’ folder, and entered this line of script:
toolbar = nuke.menu(‘Nodes’)
toolbar.addCommand(‘Keyer/KillSpillPlus’, ‘nuke.createNode("KillSpillPlus")’,’ctrl+k’)

The gizmo appears under the ‘keyer’ menu, but when I click it, I’m greeted with the following error message:

KillSpillPlus: unknown command
Traceback (most recent call last):
File "<string>", line 1, in <module>
RuntimeError: KillSpillPlus: Unknown command

Any ideas? I must doing something really basic wrong I’m guessing, I just can’t for the life of me figure out what that is!

Thanks in advance.

RSMB FOR NUKE 6.1

Dear All

Can any one give me solution for RSMB for Nuke 6.1, is there any other solution for the Motion Blur. Thank in Advance.

Rotopaint mask and Keylight

I tried to create a garbage mask to my green screen using rotopaint node, and for the key I used keylight.

The problem is, my garbage mask cut everything my composite including my background.

What is wrong in my composite ?
Attachment 11094

Thanks

Attached Thumbnails

Click image for larger version

Name:	Screen shot 2010-12-08 at 5.19.27 PM.png
Views:	N/A
Size:	479.0 KB
ID:	11094
 

NUke python: merge node mask channels

Hi everyone
Im having an issue trying to figure out how to connect the mask input on a merge node to connect to a read node.
any ideas on how to do this in python?

alternately how would I set the alpha channel drop down box for the A input

Control ColorLookup Curve Points with Integer Values

I’m trying to control the curve points of a ColorLookup node’s master curve with integer knobs in a gizmo. But so far I’m having no luck. In fact I’m now wondering is this even possible? Parenting the curve points using an expression only zeros out the curve, and doesn’t dynamically change as I plug-in new values into the knob.

Any ideas?

Thanks in advance all!

MatchMove scene – 3D mask possible?

Hi,
I’ve tracked a shot in and set up the scene in Nuke, I’ve then used the smae camera in Houdini for a snow man that I’ve created. Upon importing the exr sequence into Nuke, I now need to introduce a mask to the scene as the ‘snow man’ is supposedly outside, meaning I need to mask the window frames.

I’ve tried and tried multiple ways. I got close when I hooked a roto up to a card, plugged that into the scene, then merged the scanline render output with the the snow man exr, still didn’t deliver the desired result though. I either end up with the roto not sitting in 3D space correctly, or it just not being a mask by the time it comes through the scanline.

Any ideas what I’m doing wrong? (Hopefully this makes some kind of sense).
Thanks in advance.
Chaz

Correct way to set up Wacom tablet for nuke

Hey…

is there a standardized way to set up the pen and tablet in nuke so that multiple artists can work on the same workstation.

im also interested in how u guys set up the buttons on the pen …

mine is as follows… would like to know the common key assignments so that others might not have an issue..