Hey,

Can anyone tell me what I doing wrong here? I'm trying to assign the "D"
key to an RV's Color/LookLUT command. I'm putting this script in my
/home/.rv/mystuff directory as explained in the doc. Then I zip it using
the PACKAGE and this py file. Does anything seem odd in this script? I just
started playing with RV modules last week.

Thank you!

from rv.rvtypes import *
from rv.commands import *
from rv.extra_commands import *

class PyMyStuffMode(MinorMode):

   def __init__(self):
      MinorMode.__init__(self)
        self.init(
           "py-mystuff-mode",
            [
            (
            "Color",
            [("Look LUT", self.lookLut, 'd')]
            )
            ],
            None,
            [("Color",[("Look LUT", self.lookLut, "", None)]) ] )

   def lookLut(self,event):
      toggleLookLUT()
      if isLookLUTActiveState:
         displayFeedback("Look LUT ON")
         print isLookLUTActiveState.value()
      else:
         displayFeedback("Look LUT OFF")
         print isLookLUTActiveState.value()


def createMode():
   return PyMyStuffMode()





-- 
Bruno-Pierre Jobin
www.bpjobin.com
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to