DJV This v2.0
This location is for Registered Users Only.
Perhaps you need to login or register.
5.0, 5.1, 5.2, 6.0, 6.1 or later
Linux, Mac, Windows
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:
- Set a DJV_PATH environment variable that points to the djv_view executable
- 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.
Comments
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
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
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?!
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
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.
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!
RSS feed for comments to this post