If it's just a case of just setting a different default value it should be
easy. There's a python for beginners video on youtube by Frank. It shows
exactly how to do this kind of thing. In his example he set the blur to
different value, should be the same but with a path in your case.

Cheers,
Elias Ericsson Rydberg

onsdag 11 juni 2014 skrev Håkan Blomdahl <[email protected]>:

> Hi!
>
> I wondering if someone has an idea of how to replace the Precomp-dialog
> Class?
>
> *Basically I want to replace the defaults on where to store the precomp
> script.*
>
> My futile attempts looks along the lines of this:
>
> import nukescripts
> class MyPrecompOptionsDialog( nukescripts.panels.PythonPanel ):
>  def __init__( self ):
>   nukescripts.panels.PythonPanel.__init__( self, "MY Precomp Nodes",
> "uk.co.thefoundry.PrecompOptionsDialog" )
>   self.scriptPath = nuke.File_Knob( "script", "Precomp script path " )
>   *... the original precomp code ...*
>
>
> #Replace!
> original_precomp_dialog = nukescripts.PrecompOptionsDialog
> nukescripts.PrecompOptionsDialog = MyPrecompOptionsDialog
>
> but, when I run the precomp code the original dialog pops up.
>
>
>
>
>
_______________________________________________
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