PDA

View Full Version : Gizmo help



donat2
October 23rd, 2007, 04:53 PM
Hi,

I've created a little gizmo. It's an adaptation of the 'LM_2DMV to Nuke' gizmo. It takes two inputs. The image to be blurred and the motion vector pass.

It works fine except for one problem. When I put this gizmo in the DAG it starts with an error, i.e. there's the big red ERROR appearing on top of the gizmo. When I feed the two inputs of the gizmo the error message disappears.

This error comes from the fact that I do a channel copy inside the gizmo. So until the input is connected I get an error. How should I deal with this ? My first guess would be to disable the channel copy node inside the gizmo if there's no input connected, but I don't know how to write such an expression in TCL.

Any help would be appreciated.

Donat.
________
HairyVirginity (http://www.girlcamfriend.com/cam/HairyVirginity/)

nathan
October 23rd, 2007, 06:26 PM
You already know what the problem is ;). Since on creation the gizmo has a node looking for a channel that might not exists it is throwing the error.

You could create an AddChannel node with the default channel selected as the channel to add. This way when the gizmo is created the channel exists for the input. Once you pipe a node into your Gizmo that has the channel the AddChannel node will not modify that channel any more and your Gizmo will work like usual.

rueter
October 24th, 2007, 12:35 AM
if you want to use the expression approach you can use this in the disable knob:

![exists parent.input]

donat2
October 24th, 2007, 02:03 PM
Thanks very much.

Donat
________
Lesbians Live (http://www.girlcamfriend.com/webcam/lesbian-couples/)