I find RV UI customizations very hard to setup, even for simple shortcuts...
After loosing hours  trying to make it work i found a simple hack:
edit the software rvui.mu and add you shortcut.
(its not beatifull but works)

Of course it doesn't help if you're trying to create new stuff, just editing already existing functions/commands.

Os OSX the path is:
/Applications/RV64.app/Contents/PlugIns/Mu/rvui.mu


Magno.



On Mon, 27 Mar 2017 10:51:05 -0400, Bruno-Pierre Jobin <bpjo...@gmail.com> wrote:

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



--
Using Opera's mail client: http://www.opera.com/mail/
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to