python – how to check if input exist when creating node?

Hi i’m trying to do some action when a gizmo is created , based on whether this Node has its input connected to something or not. So i use addOnUserCreate() or addOnCreate() and code like :

Code:

if nuke.thisNode().input(0) !=None :
  plan A
else :
  plan B


before i call this gizmo, i select something on DAG, so when the gizmo is created, it will automatically connect its input to what previously selected. But i always got ‘plan B’ as result. Seems that the connecting process is done just after the oncreate() is called. Is ther any way out?

thanx

Expressions for popup values?

Is it possible to use expressions to link popup expressions of different nodes?
I have a couple of nodes and have one matching the other with the exception of the popup values. In the Gizmo video at Nukepedia they used a switch and setup multiple color lookup tables each with a different colorspace setting. I’m hoping there’s a more direct way.

Align geometric with camera movment

Hello, would i like to know what program can i did the camera tracker and a geometric (obj) to this camera movement, I need a obj tracked in a place of my video. The obj is simple like a card. Can i do this obj and camera tracker in PF track and export this data to nuke??? can i do this camera and obj in maya too?

Keyer Math 101 for Green Screen

Hi,
I found out the Keyer Math 101 tutorial form this link <http://www.creativecrash.com/shake/t…/build-a-keyer >
and do step by step as well for blue screen in Nuke. Now I want to know how to for green screen ?
the screen shot is for shake but i did it in Nuke.
excuse me for my bad english

Attached Thumbnails

Click image for larger version

Name:	image017.jpg
Views:	N/A
Size:	8.0 KB
ID:	11000
 

Click image for larger version

Name:	image018.jpg
Views:	N/A
Size:	12.1 KB
ID:	11001
 

Frame rate converting

Hi, I’m new in nuke and I want to know how to convert the frame rate of footage?
Thanks

3d objects from maya?

when i import .obj models from 3dsmax & cinema 4d, everything looks fine.
when i attempt to import .obj files that have originated from maya, i have nothing.

is there a setting i’m missing, or is maya attempting to disrupt workflow in order to push smoke?

thanks in advance for the help.

How are you all handeling DOF and Motion Blur?

Something that has been bugging me a long time is not being able to ad both depth of field and motion blur.

Of course…you can often separate the background from the foreground and use different lens blurs on them, without the z-channel hooked up to it. And then do the motion blur with motion vectors.

Another way is rendering everything in 3d, this is often too time consuming and also you as a compositor loose a lot of control.

A third way is adding a z-depth depth of field and then using a motion blur without using motion vectors.

There are times when you would want to control motion blur and Dof in the compositing using the channels (z-depth and motion vectors). As I see it the best would be "a blur" that you can input both z and motion and steer everything from the faceting in the bokeh to the shutter speed and generate a combined blur from that.

I haven’t worked in any big post houses. So I hope that someone out there has a great work flow for doing such a thing and are willing to share there experience :). Maybe there are lots of workarounds?

stereoscopic 2D to 3D

Hello

I was wondering what was the best method for 2D to 3D conversion.
Rotoscoping I get that.
But after rotoscoping is it better to make a 3D environment and project everything on card placed in z depth using a rig of camera (in that case, I don’t have the camera info of the shot)
Or is it better to make a displacement map in 2D, use idistort and a transform between the left and right views?.

I tried both and I have some issues with the 3D environment. For example, if I project every layer rotoscoped on differents cards, how do I do a displace geo on a projection?
Well if somenone can show me a tut how to make 2D to 3D conversion it would be awesome

thanks!

automate the 3d obj placement

Hi, something come up when playing with 3d in nuke. How to positioning 3d obj that match perspective of a still 2d footage (reference image). Let say i have a still image simple showing a cube/box from a certain angle. This is just still image so there’s no chance to use cam tracker to get cam data. So i want to create 3d cube to match this reference image. All i can do is manually adjust translate/rot/scale the object to match the plat. But does anyone know any method or scripts that can automate this process? maybe something like how the lensdistortion node works -> analyze the image to get the undistort one. So in this 3d case , maybe it analyze couple of the straight lines (what should be pararell lines ) to calculate the perspective or vanishing point …. and finally to get the correct cam angle or object position in 3d space.

thanx

python tutorials for you guys

I use Nuke, have been for a long time, and if you’re reading this, it’s probably obvious that you yourself use it. I mean, being in the Nuke forum, blah blah blah, etc.

Anyways, let’s say you want to start programming your own python tools/scripts and have no idea where to start to learn python. I know from experience, because my skills have deteriorated lately and had to revamp them, that a lot of text out there about Python programming and the python language can be cryptic and confusing. So I thought to myself "hmm.. I have to re-learn all of this stuff because I suck at it…. again, where can I go to read up on it? You know what? Maybe youtube has videos????"

You may think that youtube wouldn’t be the best place to learn something you have to read up on, but it really helps, especially these tutorials I found.

All the videos are hosted on youtube, but the guy ended up making a website as well where he links to all of them, that way everything is in order. He’s really good at explaining things so people don’t get confused, etc. There’s also a forum in there, although for Nuke specific python problems you’d be better off posting in here.

http://www.thenewboston.com/

I hope it helps people out there who have had trouble trying to understand certain aspects of it.