PDA

View Full Version : viewer Channel shortcuts


jbills
04-11-2006, 03:51 AM
this little script makes it so you can flip between R, G, B and RGB views quickly with shift+r, shift+g, shift+b, and shift+c (RGB). "a" already toggles the alpha.

this is just the viewer, but could easily add in a bit of code that changes the active paint channel to what's being viewed, I think. don't need that just yet but might later.


def redchannel():
fx.viewer.setChannelMask(fx.Color(1, 0, 0, 0))

def greenchannel():
fx.viewer.setChannelMask(fx.Color(0, 1, 0, 0))

def bluechannel():
fx.viewer.setChannelMask(fx.Color(0, 0, 1, 0))

def rgbchannel():
fx.viewer.setChannelMask(fx.Color(1, 1, 1, 0))

fx.bind('Shift+r', redchannel)
fx.bind('Shift+g', greenchannel)
fx.bind('Shift+b', bluechannel)
fx.bind('Shift+c', rgbchannel)