DJV This v2.0


 
This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: Diogo Girondi
Runs DJV as Nuke's flipbook
Requirements:
5.0, 5.1, 5.2, 6.0, 6.1 or later
Linux, Mac, Windows
20 Jun 2010
482

You can download DJV imaging from the official site at http://djv.sourceforge.net/

The installation methods will vary depending on how you set your environment so the example bellow might not be exactly what you need.

 

Example Menu.py Entry
1
2
3
4
menu = nuke.menu('Nuke')
 
m = menu.findItem('Render')
m.addCommand('Flipbook Selected in &DJV', 'nukescripts.flipbook( <package>.djv_this, nuke.selectedNode() )', 'Ctrl+F', index=9)

 

Note that <package> in this example should be replaced by the package where djv_this.py is located and being initialized (imported).

To set the location of DJV View you have two options:

  1. Set a DJV_PATH environment variable that points to the djv_view executable
  2. Edit the "djv_path" variable on line 18 of the djv_this.py to point at the executable

The method used will also depend on how your environment is set.

You may also want to edit the DJV Options set by the script by uncommenting and editing the lines 69 to 84 of the djv_this.py. By default it will cache in 1/2 proxy, use RAM cache automatically start the playback and use the fps set on the Nuke script root and display the units in frame. You can change all of these by editing the mentioned lines to something that better suites your needs.

 

 

Please login in order to download these files.

Comments   

 
0 # Alexander Jacquet 2010-10-12 16:14
Hello,

I've installed your script but im getting an error stating:
File "", line 1
nukescripts.fli pbook( .djv_this.nuke, selectedNode() )
^
SyntaxError: invalid syntax

I changed to the location of my djv_this.py script. I also changed the djv_this.py file to read:

if djv_path == 'C:Program Files (x86)djv 0.8.3in'

which is where the djv.exe is installed. Am missing a step? Please excuse me if this a silly question, as this is my first time dealing with python scripts.

Hope to hear back.

Alex
 
 
0 # Jep Hill 2010-11-30 14:38
Thank you for this script. After installing and running this on OS X (Nuke 6.1v3) I was getting the following error:

OSError: [Errno 4] Interrupted system call

The 'nerd in me' would really like to use a solution involving the subprocess module but in order to get things working I just replaced the subprocess.Pope n call with:

djv_args = ' '.join( cmd )
os.system( (djv_args + "&") )

I realize this may be an ad-hoc odd hack but I will continue to tinker and report back... If you choose to use this temp solution don't forget to add 'import os' in your djv_this.py script.

Cheers,
Jep
 
 
-5 # Ivan Lebedev 2010-12-05 03:53
Garbage!

I can't even install it! I've spent 2 hours to make it work and nothing.
Why the author can't write exectly what we need to do to install it?!
 
 
+2 # Diogo Girondi 2010-12-05 06:01
Thanks for your warm words Ivan I really appreciate that.

1. It's a free tool
2. It's open source
3. I'm not demanding you to use it
4. You should really read the docs on how to source python scripts in Nuke
5. Feel free to write your own and share it
6. I don't have any obligation to maintain it
 
 
0 # Ivan Lebedev 2010-12-05 09:36
Thanks to your reply!

Keep the following in mind though:
If you do something and then share it with people, then try to write some docs to your tool if you want anyone to try it.
 
 
0 # Gianluca Salerno 2012-02-21 05:27
Hi! It doesn't work for me..is something broken on nuke6.3?
 
 
0 # Juls Ihlz 2012-02-21 06:53
Hey, thanks alot for sharing your work! :-)
However, I have a little trouble setting it up. I replaced in the example menu.py entry with the path to the djv_this.py (eg. "C:User.nukedjv _this.py"). However when I'm trying to launch it I'm getting an error: 'strg' oject is not callable. I assume this is because the path to the .py is a string, however its also not working if i use the path without quotes.
Any help is greatly appreciated!
 

You have no rights to post comments

We have 2415 guests and 131 members online