My colleague has come to my rescue! Wrapping my set_expression code in,
if ( f.makeKnobs() )
{
}
seems to do the trick.
Cheers,
Steve
Stephen Newbold wrote:
Hi,
I want my plugin to be created with an expression set to one of the
knobs. I've done this using set_expression() after my knob is created
within knobs(). This works but now if I wanted to override this
expression within the UI and use my own value I can't because knobs()
keeps getting called and resetting the expression.
Where is the best place to set the expression (obviously after the
knob object has been created) or should I just wrap the
set_expression() in an if statement to check whether it has already
been done already?
Cheers,
Steve
--
Stephen Newbold
Compositing Lead - Film
MPC
127 Wardour Street
Soho, London, W1F 0NL
Main - + 44 (0) 20 7434 3100
www.moving-picture.com
_______________________________________________
Nuke-dev mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev