Sorry, I should have been clearer. A simple workaround is to just check if the target file exists after each frame (you can still grab your left eye path reliably using the file knob's .evaluate() method), and then only copy it if it isn't already there:

import os
import shutil

def copyLeftEyeFrame():
   outFile = nuke.thisNode()['file'].evaluate(view='left')
   dest = '/path/to/where/you/need/a/copy.ext'
   if not os.path.isfile(dest):
       shutil.copy2(outFile, dest)


-Nathan


-----Original Message----- From: Vincent Langer
Sent: Monday, November 19, 2012 10:07 AM
To: nuke-python@support.thefoundry.co.uk
Subject: [Nuke-python] Re: 'After each frame' - WriteNode callback and stereo

thanks Nathan,


i need some help with "pretty easily manually" :)

i do not know how to get an copy command only done once for the left eye.

cheers,
Vincent





______________________
This appears to be a bug in 6.3 that has either been intentionally or
accidentally fixed in 7.0. However, you should be able to do this pretty
easily manually.

-Nathan

-----Original Message-----
From: Vincent Langer
Sent: Friday, November 16, 2012 11:57 AM
To: nuke-python@support.thefoundry.co.uk
Subject: [Nuke-python] 'After each frame' - WriteNode callback and stereo

hi there,

i was wondering why when i put something like:

print nuke.thisView()

in a writenode´s "after each frame" textfield in my stereo comp
it only says "right".


i simply what to copy each left-view frame to a special location with
shutil.
but all i get from:


nuke.filename(nuke.thisNode(),nuke.REPLACE)


is the right view filename twice.

is this a bug or am i doing something wrong?
(i am on 6.3v8)

cheers,
Vincent

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
_______________________________________________
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