Beta memo: at this time the forums and insider use two different registration and login systems.
We're working on unifying the process, so if you register with your same e-mail on the forums and insider we'll merge your accounts later.
To access the forums please use the login below. -Thanks.
Results 1 to 5 of 5
-
7th July 2011, 13:48 #1
Member
- Join Date
- Jul 2011
- Posts
- 2
Nuke, hiow to create a read node for an image sequence that doesn\'t start with 0?
Hi,
I am going slightly mad over this apparently easy task. Here\'s what I am trying to do via Python:
-> There is an image sequence starting at frame 25, like this:
sh100_MB_camera1_Left.####.tif
all I wanna do is create a node that reads this image sequence and another node that writes it as JPG into a different folder.
Here\'s what I have been trying so far:
Unfortunately, this only works for sequences starting with frame 0 or frame 1 but not for sequences starting at different frames. Neither the creation method with nuke.nodes.Write() nor nuke.createNode() works. The nodes are created but nuke doesn\'t interpret the framerange in the given sequence, always showing an error message it couldn\'t find C:/shots/sh100_MB_camera1_Left.0001.tif.Code:srcSequence = \'C:/shots/sh100_MB_camera1_Left.####.tif\' tgtSequence = \'C:/shots/preview/sh100_MasterBeauty.####.jpg\' # readNode = nuke.nodes.Read(file = srcSequence) # writeNode = nuke.nodes.Write(file = tgtSequence) readNode = nuke.createNode(\'Read\', srcSequence) writeNode = nuke.createNode(\'Write\', tgtSequence) first = readNode.knob(\'first\').getValue() last = readNode.knob(\'last\').getValue() nuke.execute(\'Write1\', first, last)
How do I make nuke check the range of a sequence when creating a Write Node and add in this range into the Write Node\'s first/ last fields?
-
8th July 2011, 13:31 #2
Member
- Join Date
- Jun 2011
- Posts
- 10
In the read node options you can change the input frames. Normaly that start with 1 or 0 and goes to the end, but you can just paste your starting frame in.
-
8th July 2011, 16:57 #3
Member
- Join Date
- Jul 2011
- Posts
- 2
Ok, thanks for your reply but that doesn\'t really solve my problem. My question is how to set up the nodes to the correct framerange via scripting, not manually fixing the Options.
-
4th January 2012, 13:34 #4
Member
- Join Date
- Feb 2011
- Posts
- 17
Type in frame+1. Frame is a expression call in nuke to read the current frame number.
But i\'m not sitting down in front of the computer with you so I cant tell if this solves your issue.
-
23rd March 2012, 07:23 #5
Change the input frames should be work,I think.
Maybe you can trying different setting until you get the most satisfied result?my company website:http://www.foxrenderfarm.com

Reply With Quote
