Flipbook with DJV View 1.0.0 for Nuke

Use DJV as an alternative flipbook in Nuke

Back to Bugs List Previous Next

Bugs

Error loading

Statuspending
Priorityhigh
Date06/14/2010
Submitted by mushu mushu
When opening nuke i get  
 
-

Traceback (most recent call last):

File "C:/Program Files/Nuke6.0v6/plugins/menu.py", line 387, in <module>

n = m.findItem("Render")

NameError: name 'm' is not defined

-


Pls help       

Comments on this bug:

  • diogo girondi

    diogo girondi said over 16 years ago:

    That error is not on the djv_this.py it self but on your menu.py where you've added the entry to call the script. How you set that will depends entirely on how your environment is set, but something along the lines of the code below should work as long you have the script installed correctly. menu = nuke.menu( 'Nuke' ) m = menu.findItem( 'Render' ) m.addCommand( 'Flipbook Selected in &DJV', 'nukescripts.flipbook( dg.djv_this, nuke.selectedNode() )', 'Ctrl+F') Where "dg" is the name of the package I use here for my own scripts, so you must replace that for something that works for your own setup. If you install it on your nukescripts package and adds it to the nukescripts __init__.py just replace "dg" for "nukescripts" and it should work. But I would avoid messing with the nukescripts package by adding your own stuff to it or any of the install dir stuff for what matters. So create those either on the .user or NUKE_PATH.
    Report
  • get2brad

    get2brad said over 16 years ago:

    I'm not able to get this script to work.... here's what I did. 1. Put djv_this.py in the .nuke directory (didn't touch the file since I made the ENV VAR) 2. Made a Windows Environment Variable: DJV_PATH point to: C:\Program Files\DJV\bin\djv_view.exe (which is where DJV is installed) 3. Added this to my menu.py in my .nuke directory: menu = nuke.menu( 'Nuke' ) m = menu.findItem( 'Render' ) m.addCommand( 'Flipbook Selected in &DJV', 'nukescripts.flipbook("\djv_this", nuke.selectedNode() )', 'Ctrl+F') When I select a node and try to flipbook it I get " Flipbook render failed: 'str' object is not callable" I know Nuke is seeing the djv_this.py because I replaced "\djv_this" with "\test" which does NOT exist and Nuke errors out before asking for a frame range. I'm not sure what I'm doing wrong?! Also, I didn't understand what you meant by "Where "dg" is the name of the package I use here for my own scripts". What do you mean by package? Any help would be greatly appreciated!!! I'm using Windows 7 Pro 64bit and Nuke 6.0v3.
    Report

Post a comment:

Sign in