[regsub "\\.exr$" [value [topnode].file] ".%04d.exr"]
..which will let you put other nodes between the Read and the output node
Or you could look at the immediately-upstream node like this:
[regsub "\\.exr$" [value input0.file] ".%04d.exr"]
That command also fixes the first argument to regsub: the "$" means it
will only match the "exr" at the end of the file, and the "." needs a
escaped (otherwise it means "any character")
On 11/10/13 16:26, Elias Ericsson Rydberg wrote:
Nice scripts Diogo. I wonder if there's a way to get around hard coding
"Read1". Using expressions I think it should be possible to write
something like Parent.file.value to get the file string?
All the best,
Elias
11 okt 2013 kl. 04:46 skrev Diogo Girondi <[email protected]
<mailto:[email protected]>>:
You're welcome.
Cheers.
Diogo
On Thu, Oct 10, 2013 at 11:45 PM, Darren Coombes
<[email protected] <mailto:[email protected]>> wrote:
Thanks for that Diogo, i'll give it a try. Cheers.
*
*
*
*
*Darren Coombes - VFX Compositor*
Check out some of my work*…*
*www.vimeo.com/53990514 <http://www.vimeo.com/53990514>*
*Mob: +61 418 631 079 <tel:%2B61%20418%20631%20079>*
*Skype: darrencoombes*
*Twitter: @durwood81*
*
*
*
*
On 11/10/2013, at 1:41 PM, Diogo Girondi <[email protected]
<mailto:[email protected]>> wrote:
*TCL*
/new/path/to/file/[regsub ".mov" [file tail [value Read1.file]]
".%04d.exr"]
or
[regsub ".mov" [value Read1.file] ".%04d.exr"]
*Python*
/new/path/to/file/[python
os.path.basename(nuke.toNode('Read1').knob('file').value()).replace('.mov',
'.%04d.exr')]
[python nuke.toNode('Read1').knob('file').value().replace('.mov',
'.%04d.exr')]
cheers,
diogo
On Thu, Oct 10, 2013 at 10:36 PM, Darren Coombes
<[email protected] <mailto:[email protected]>> wrote:
Hi All, I'm trying to make a write node that's connected to a
quicktime movie that exports an jpg seq, and i want the
filename to be the same as the quicktime movie.
Is there a way to tell nuke to name the file the same as the
read, but with the .%04d.jpg on the end?
Thanks.
*
*
*
*
*Darren Coombes - VFX Compositor*
Check out some of my work*…*
*www.vimeo.com/53990514 <http://www.vimeo.com/53990514>*
*Mob: +61 418 631 079 <tel:%2B61%20418%20631%20079>*
*Skype: darrencoombes*
*Twitter: @durwood81*
*
*
*
*
_______________________________________________
Nuke-users mailing list
[email protected]
<mailto:[email protected]>,
http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
_______________________________________________
Nuke-users mailing list
[email protected]
<mailto:[email protected]>,
http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
_______________________________________________
Nuke-users mailing list
[email protected]
<mailto:[email protected]>,
http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
_______________________________________________
Nuke-users mailing list
[email protected]
<mailto:[email protected]>,
http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
--
ben dickson
2D TD | [email protected]
rising sun pictures | www.rsp.com.au
_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users