How do I disable a node if there is no input

I’m using this expression
[exists.parent.input0]

The problem I’m running into is it doesn’t seem to re-evaluate when a node is connected or unconnected.

Essentially, I want to return a value of 1 or 0 if a node is connected or not.

It’s working if I do it on a node itself, but if I try and put it on a node INSIDE a GROUP (and input node) , it doesn’t seem to re-evaluate if something is indeed connected to it or not

Any ideas?

Thanks in advance.

keying workflow

Hi everyone,
I am actually working on a keyng shot and was wondering if after linearising the shot, a white balance could help giving better results on using any kind of keying tool in nuke..Of course I could look at the result myself, but I d like to understand if color grading a shot can be usefull or note regarding to 32bit float keying processing in Nuke..or if it s completely useless…
hope my question is clear anough.
thanx

nonlinear addmix – why?

i have to use a addmix node to get the same result like in photoshop…
but i have no idea why its not working with a merge node and premult…

i have one green background and an interlaced yellow falloff as PNG…

oglu confused…!
in fusion it would work with postmultiply by alpha…

Attached Thumbnails

Click image for larger version

Name:	addmix3.jpg
Views:	N/A
Size:	178.8 KB
ID:	11418
 

physical ‘flipbook’ expression help

Hi there,

I’m attempting to create a ‘flip-book’ animation from a frame sequence. My best reference is the marvel logo;
http://www.youtube.com/watch?v=ZmfiIqzdIbM

Key framing the frame-hold node’s increment value gets the timing right, but for the life of me, I can’t figure out how to get the next frame layered over with a transform at the right time, ideally controlled via expression from the increment value.

Any advice would be greatly appreciated,

P.S. the ‘flip’ animation is a super simple y transform that’s only 3 frames w/ motion blur.

remap hotkeys

hi

i dont have an english keyboard (and dont wont to set the layout to english) and cant switch between my left/right viewers because i have to press shift to get the semicolon ;
is there an option to remap hotkeys? or another workarround?

cheers
joe

Python read node help

I have a question about read node. I am working on a stop-motion film, my input material are 3K DPX. As you know on stop-motion film you double the frames, freeze some of them… you are playing with retiming al the time. Back in the days of using Shake I was able to do that inside read node. Simply in file path like this:

/shot.1-22,22,22-30.dpx -> in this case it read frames from 1-22 than hold F22 and continue 22-30.

I don’t have all that Python knowledge already, I am learning it in small steps. But is there an option to do the same inside read file path in Nuke? Or is there any gizmo for that?

Many thanks for reply, it will save many of hours for me! Now I am simply duplicating read nodes and merging them together. It is a slow and painful way.

Regards, Teo

open nuke script from terminal

Hi!

Trying to open a nuke script from terminal by typing:

nuke myscript.nk

Nuke starts, but I get this error message:

unexpected ‘.’ in "6.2"

I have no problem just open nuke in terminal, but when I try to open a script like this, it doesnt work.

Also I get these error messages in terminal:

[21:10.36] ERROR: preferences.ArrowheadLength: unexpected ‘.’ in "16.458"
[21:10.36] ERROR: preferences.ArrowheadWidth: unexpected ‘.’ in "11.0912"
[21:10.36] ERROR: preferences.ArrowWidth: unexpected ‘.’ in "0.357782"
[21:10.36] ERROR: preferences.dot_node_scale: unexpected ‘.’ in "1.1449"

Anybody can help me out here?
:confused:

Disable node expresssion/script

Hello everyone,

I have a setup with 20 elements feeding a switch node along with a NoOp with a dropdown to select which element is being passed downstream. I’d like to add a function that will get the value of the switch and then disable all other elements/switch inputs. Is this possible?

Thank you,
Craig

Color match using color chart

I’m playing around with matching colors using color charts and in theory it should work very well. And I guess it does, but I’m not really sure what the right process is. In the attached script, I a fg plate shot in a studio and a bg plate shot at a location with different cameras. I thought that by using the grade node and sample the black and white points of my original image color chart and then sample the lift and gain from the bg plate, would be the correct workflow. But it seems to give me better result by sampling the skin-tones of my plates instead of white. Why is this? How do you guys normally handle situations like this?

Again, this is just a quick test of concept, and it should be very quick to match colors with this method. I have seen the video on The Foundrys webpage about this, but he samples skin color there aswell.

Could you do something with the other colorson the chart and create a 3D lut somehow that would be very accurate?

I’ve attached the Nuke test script and the fg and bg plate.

Cycling Frames Automatically

I want to cycle between 3 frames to use their grain (instead of regraining).

Can someone help walk me through a way to use 3 stills and cycle them (1, 2, 3) in an automated loop that I could use to plug back into a paint node as the background?

I know I can do this with the switch node, but I’d have to animate every frame. Expressions? Help is appreciated!