The `onScriptLoad` callback runs after the Root’s `onCreate` callback, which 
should be the last `onCreate` to run when a script is loaded.

-Nathan



From: Tony Barbieri 
Sent: Monday, March 10, 2014 7:58 AM
To: nuke-dev@support.thefoundry.co.uk 
Subject: [Nuke-dev] Open file on startup

Hello! 

I am trying to open a file on startup by using a custom open method written in 
python.  I am trying to run the open code either in an init.py or menu.py that 
we use for our facility.  Ideally this can happen in the init.py.  The code 
appears to be running correctly but it seems that the file is zeroed out to a 
default scene due to it running "too early".  

Is it possible to open a file on Nuke launch without using the standard 
command-line file flag but do it via python?


Thanks!

-- 
-tony 


--------------------------------------------------------------------------------
_______________________________________________
Nuke-dev mailing list
Nuke-dev@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev
_______________________________________________
Nuke-dev mailing list
Nuke-dev@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev

Reply via email to