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
  1. #1
    Join Date
    Jul 2011
    Posts
    2

    Default 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:
    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)
    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.

    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?

  2. #2
    Join Date
    Jun 2011
    Posts
    10

    Default

    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.

  3. #3
    Join Date
    Jul 2011
    Posts
    2

    Default

    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.

  4. #4
    Join Date
    Feb 2011
    Posts
    17

    Default

    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.

  5. #5
    Join Date
    Mar 2012
    Posts
    25

    Default

    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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •