Or you could convert it to a "grizmo" so that your script containing it can be 
loaded from any type of Nuke install.

Sent from my iPhone

> On Aug 25, 2016, at 3:08 AM, Fredrik Averpil <fredrik.aver...@gmail.com> 
> wrote:
> 
> Hi,
> 
> I’ve got a project which contains a “gizmos” folder. In order to make my .nk 
> script realize that this folder exists and that it should be used I can run:
> 
> import nuke
> nuke.pluginAppendPath(GIZMOS_PATH)
> I currently have this in my init.py file so that this happens automatically.
> 
> Now to my question:
> 
> I need to make this script find the gizmos even if the init.py file doesn’t 
> exist. Is there any way I can bundle this code in my .nk script and make it 
> run just before the script is being parsed, so that any gizmos are found and 
> used?
> 
> Cheers!
> // Fredrik
> 
> _______________________________________________
> Nuke-python mailing list
> Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to