"modified" in this case means "changed since last save".
Hope that helps. F. On Thursday, May 8, 2014, Tony Barbieri <[email protected]> wrote: > Hello! > > Is there a method or a way to see if scriptOpen will launch a new Nuke > session or if it will open the script in the current session when > evaluated? If a new Nuke session will be launched then I don't need to do > anything, if not I will need to execute some additional code to setup > environment features. > > nuke.root().modified() isn't enough because the open script may have nodes > in it but remain unmodified. Is it as simple as seeing if the root has > children nodes underneath it? I'm not sure the mechanism Nuke is using to > determine if a new session is required or not. > > Thanks for any help! > > -- > Tony Barbieri > -- Frank Harrison Senior Nuke Software Engineer The Foundry Tel: +44 (0)20 7968 6828 - Fax: +44 (0)20 7930 8906 Web: www.thefoundry.co.uk Email: [email protected]
_______________________________________________ Nuke-dev mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev
