Hey there- 

I don't know if this is a bug or if I missed something. I would expect that the 
command nuke.scriptClear() would clean out a script back to a new state. Well, 
it deletes all the nodes, but it's not clearing out old channels or layers.

try adding some bogus layers or channels to a script, then:

nuke.scriptClear() 
print nuke.layers()
print nuke.channels()

and you'll see the bogus stuff will still be there. Any way to clear it out? 
Basically, I've got a script that cleans bogus layers up from the text file, 
then I'm wanting to just

nuke.scriptClear()
nuke.scriptOpen(scriptname)

scriptname is the cleaned up script without bogus layers. Unfortunately, since 
the bogus layers are still in the nuke context when I do the scriptOpen, the 
cleaning didn't do jack. If I close nuke and relaunch instead of using 
scriptOpen I'm ok, but I was just trying to avoid that.

any ideas on really clearing all the layers and channels after scriptClear()?
thanks
JRAB_______________________________________________
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