Runs DJV as Nuke's flipbook
DJV This
Updated: 20 June 2010
Author: diogoadmin
Compatible Nuke versions: 5.0 or later
Compatibility: 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.