multiRead

 v1.2

Opens multiple read nodes similar to Shake's 'next' function
Author
Howard Jones
Requirements
5.0, 5.1, 5.2, 6.0, 6.1 or later
Created on: 26/01/2011
Updated on: 31/08/2010
Downloads: 130
Login or Register

 

Opens multiple read nodes similar to Shake's 'next' function. Read from multiple folders and at the end all selected files are read in, in one go.

example menu.py line...

m = toolbar.addMenu("Image", "ToolbarDraw.png")
m.addCommand( "multi Read", "nuke.load(\"multiRead\"), multiRead()",'ctrl+r' ,icon='Read.png')

v1.1 added still images ability

v1.2 added Nathan's suggestion

Howard

Comments (7)

David Schnee said:

...
This is great, but I'm getting the index out of range error when trying to select just a couple single images... (select a single image>open, select second single image> open, then hit cancel) any fix for this in the works? I like it though, works for ranges... thank you.
August 24, 2010

Howard Jones said:

...
Hi

I haven't set this up for single images though it does read .movs.
I will have a look and see what needs to be modified.
August 25, 2010

Howard Jones said:

...
Hi David

v1.1 should address the issue - thanks for the feedback
August 25, 2010

David Schnee said:

...
Beautiful, thank you Howard.
August 25, 2010

Nathan Rusch said:

...
Just some thoughts to potentially avoid future bug reports.

We have a function very similar to this in our internal library, and one thing I think would help you here is setting the file knob via its ".fromUserText()" method instead of ".setValue()." This will actually open the file and get the start and end frames automatically, as well as set the format knob appropriately, so you wouldn't have to set any of that stuff yourself, or prompt the user to refresh anything.

Also, since we're Windows-based and Apple hates 64 bit platforms (and I ran into this same problem), I would recommend adding a check for a 64 bit Windows environment and ignoring any MOV paths if true (to prevent your script from tanking if a 64-bit Windows user accidentally selects a MOV to read).
August 26, 2010

Howard Jones said:

...
Hi Nathan

Thanks for the insight - v 1.2 now includes the '.fromUserText' change.
August 31, 2010

David Schnee said:

...
Do we have the ability to modify the nuke.getClipname browser? It would be great to have an 'open', 'add', and 'cancel' button, so the 'add' button will behave as the multiRead... and the 'open' 'cancel' as usual.
September 02, 2010

Write comment
You must be logged in to post a comment. Please register if you do not have an account yet.

busy