You can pass a second argument to setExpression() for the channel/field you
want to set the expression on.

knob.setExpression("blah", 0)
knob.setExpression("blah", 1)
knob.setExpression("blah", 2)
... etc

  Help on built-in function setExpression:

setExpression(...)

self.setExpression(expr, channel=-1, view=None) -> bool

Set the expression for a knob. You can optionally specify a channel to set
the expression for.

 @param expr: The new expression for the knob. This should be a string.

@param channel: Optional parameter, specifying the channel to set the
expression for. This should be an integer.

@param view: Optional view parameter. Without, this command will set the
expression for the current view theinterface is displaying. Can be the name
of the view or the index.

@return: True if successful, False if not.



On Tue, Nov 22, 2011 at 5:26 AM, Kasper Oerlemans | Filmmore <
[email protected]> wrote:

> Hi Everyone,
>
> I'm trying to set an expression to the positions of the matrix of a corner
> pin node (the extra matrix I mean to use). But somehow I can't set an
> expresssion to every individual position. I can set the same expression to
> the whole thing with setExpression, but how do I make one for every single
> one?
>
>
> thanx!
>
>
> Greetings!
> -------------------------------
> Kasper Oerlemans
> VFX Supervisor
> Filmmore Amsterdam
> +316-18053019
>
>
>
> _______________________________________________
> Nuke-python mailing list
> [email protected], http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>
>
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to