View Full Version : i8bozo mode
jbills
05-23-2005, 04:25 PM
Just consolidating into this forum.
http://forums.silhouettefx.com/showthread.php?t=252
george's mode for triggering the overlay in one step
i8bozo
06-06-2005, 10:56 PM
Just consolidating into this forum.
http://forums.silhouettefx.com/showthread.php?t=252
george's mode for triggering the overlay in one step
well...it's still two steps at the moment. we still have to click the alpha box once in the beginning. would love to have that keyed into the i8bozo code so it is actually a "one" button quick fix solution.
the customization is coming along nicely by the way. i've remapped about 5 of my hotkeys to a more user friendly set up.
giant steps forward. thank you!!
.g.
jbills
06-06-2005, 11:06 PM
I suspect there's a way to add the alpha part into it.
something like this:
. fx.viewer.setChannelMask(Color(1, 1, 1, 1))
Paul?
paulm
06-07-2005, 09:23 AM
Yes, the channel mask controls which channels are visible.
These are supported:
Color(1, 1, 1, 1) - overlay alpha over image
Color(0, 0, 0, 1) - show alpha by itself
Color(1, 0, 0, 0) - show Red channel
Color(0, 1, 0, 0) - show Red channel
Color(0, 0, 1, 0) - show Red channel
The original demo code I sent you did set the alpha-only mode using Color(0, 0, 0, 1).
Also, in the future, try using the wrapper tags around code snippets. They will preserve indendation. There is a # button in the "Enhanced Mode" for the forum text editor that does this for you.
jbills
06-09-2005, 11:01 PM
updated i8bozo code that shifts into RGBA before triggering.
#
# i8bozo
#
i8bozo_mode = False
def i8bozo():
global i8bozo_mode
from fx import Color
i8bozo_mode = not i8bozo_mode
if i8bozo_mode:
fx.viewer.setOverlay(False)
fx.viewer.setChannelMask(Color(1, 1, 1, 1))
fx.viewer.setViewMode(0)
else:
fx.viewer.setOverlay(True)
fx.viewer.setViewMode(1)
fx.bind('q', i8bozo)
#
# i8bozo
#
i8bozo_mode = False
def i8bozo():
global i8bozo_mode
from fx import Color
i8bozo_mode = not i8bozo_mode
if i8bozo_mode:
fx.viewer.setOverlay(False)
fx.viewer.setChannelMask(Color(1, 1, 1, 1))
fx.viewer.setViewMode(0)
else:
fx.viewer.setOverlay(True)
fx.viewer.setViewMode(1)
fx.viewer.setStabilize(0)
fx.viewer.setStabilize(1)
fx.bind('q', i8bozo)
vBulletin v3.5.3, Copyright ©2000-2010, Jelsoft Enterprises Ltd.