Frame range from read node in python

Hi guys,

does anyone know how to retrieve the first and last frame from a read node created through Python?:

r=nuke.createNode(‘Read’)[‘file’].setValue(‘/the/file/folder/filename.%04d.dpx’)

when i do so the frame range is 1 to 1 and i dont want to set it via r[‘first’].setValue() and r[‘last’].setValue because for our project we dont know how many frames will be present in the sequence so i need to retrieve it from the read node. Cheers

Kim

Creating write nodes

Need a little help with creating write nodes and filetypes.
Below is a simplified version of what i am trying to do: creating a write node and set its filetype by the use of a dictionary:

Code:

d = dict({'t1': 6, 't2': 11})
nuke.createNode('Write','file_type d[t1]',True)


No matter what dict entry i use, the filetype is always set to dpx. What gives?? t1 should translate to 6 which in turn would be .jpg….

making a gizmo

Hi, I just want to do keying in my own way. How can I export it as gizmo and put it in my nuke as a plugin.

Reload all

Is there s tcl or pyhton command to reload all read nodes? Like the menue entry Edit -> Reload all.

Nuke Mosaic

Had some spare time today while waiting for renders so decided to make a Nuke mosaic script and panel… (a la the Mona Lisa one that someone posted a while ago)
The functionality ("build" function) is commented heavily…

Script is attached…enjoy 🙂

(http://www.chunkified.com)

Attachment 9869

Attached Files
File Type: py ch_nukeMosaic.py (6.1 KB)

FractalWarp plugin

Hi everyone,
I’ve just finished another plugin for Nuke. It is simple image warper. Warping is done with julia set fractal. You can download it from here. CC are welcome.

Afanasy: Nuke Network Render

CGRU version 1.1.0 released.

http://cgru.sourceforge.net/

Key feature:
"Nuke network rendering"

It is an ability to send to network render several Write-nodes in a single job.
Afanasy gizmo provides Write-nodes dependency description. You can connect Afanasy gizmo to several Writes or to another Afanasy gizmo, this will describe rendering order.

For example we want to render Back, Key, Final(which depends on Back and Key) and Preview(which depends on Final):

This connections network will produce a muiti-block job with needed frame dependency:

Each Preview frame will wait the same Final frame to be rendered. Each Final frame will wait the same Back and Key frames.

This is useful on ‘heavy’ scenes.

Full documentation:
http://cgru.sourceforge.net/afanasy/…c/afanasy.html

Nuke timer gizmo

Hi 🙂

What would be the best way to create a gizmo that allows a user to start and stop a timer, to see how long it takes you to get a task done, and maybe log the times for each session. An example is rotoscoping an object in a shot. I am going through the nuke gizmo tutorial videos on their site to see if i can find a method. How would you create a custom gizmo from scratch, or would you make a group into a gizmo and start from there?

Thanks

Wrap text in backdrop node

occasionally I do a lot of typing in backdrops nodes. Eventually, I resize these backdrops or reposition them. Is there a way I can have my text wrap based on the bdwidth and bdheight?

thanks

nuke.ViewerWindow.activeInput()

Hi I am trying to get the number assigned to the active input in the viewer. Here is the code I am running:

nuke.ViewerWindow.activeInput()

As far as I understand it, according to the documentation, this "Returns the currently active input of the viewer – i. e. the one with its image in the output window"

Am I missing a bracket or something somewhere?
It seems to be expecting a <ViewerWindow> type as an argument.
The error I usually get is this:
"descriptor ‘activeInput’ of ‘ViewerWindow’ object needs an argument"
I am on Windows using Nuke5.2v1.

Any help would be greatly appreciated.
Pete