foreverendering
08-08-2007, 12:50 PM
Hi, I was digging through old threads on this forum searching for a way to bind Soft Select Falloff to a hotkey, and found this thread
http://forums.cgsociety.org/showthread.php?f=6&t=48625&highlight=soft+falloff
which contained a cool little script that lets you bind incremental increases or decreases for soft select falloff to a hotkey.
first macroscript
--------- [begin snip] ---------------
macroScript ShrinkSoftSel
category:"MyScripts"
toolTip:"Shrink Soft Select"
(
on isEnabled return
(
if (((getcurrentselection()).count == 1) and ($ != undefined)) then
if (classof $.baseobject == Editable_Poly) then true else false
else false
)
on Execute do
(
undo off
(
local tempvalue = $.Falloff
tempvalue = tempvalue - 0.5
if (tempvalue < 0) then tempvalue = 0
$.Falloff = tempvalue
)
)
)
--------------- [end snip] -----------
second macroscript
-------------[begin snip] -------------
macroScript GrowSoftSel
category:"MyScripts"
toolTip:"Grow Soft Select"
(
on isEnabled return
(
if (((getcurrentselection()).count == 1) and ($ != undefined)) then
if (classof $.baseobject == Editable_Poly) then true else false
else false
)
on Execute do
(
undo off
(
local tempvalue = $.Falloff
tempvalue = tempvalue + 0.5
$.Falloff = tempvalue
)
)
)
------------ [end snip] ---------------
My question is, is it possible to modify this script such that you could hold down a key, and then increment up & down using the mouseCursorY or mouseCursorX position? This would provide a functionality similar to a sculpting program like Mudbox. Is this even possible?
Thanks
http://forums.cgsociety.org/showthread.php?f=6&t=48625&highlight=soft+falloff
which contained a cool little script that lets you bind incremental increases or decreases for soft select falloff to a hotkey.
first macroscript
--------- [begin snip] ---------------
macroScript ShrinkSoftSel
category:"MyScripts"
toolTip:"Shrink Soft Select"
(
on isEnabled return
(
if (((getcurrentselection()).count == 1) and ($ != undefined)) then
if (classof $.baseobject == Editable_Poly) then true else false
else false
)
on Execute do
(
undo off
(
local tempvalue = $.Falloff
tempvalue = tempvalue - 0.5
if (tempvalue < 0) then tempvalue = 0
$.Falloff = tempvalue
)
)
)
--------------- [end snip] -----------
second macroscript
-------------[begin snip] -------------
macroScript GrowSoftSel
category:"MyScripts"
toolTip:"Grow Soft Select"
(
on isEnabled return
(
if (((getcurrentselection()).count == 1) and ($ != undefined)) then
if (classof $.baseobject == Editable_Poly) then true else false
else false
)
on Execute do
(
undo off
(
local tempvalue = $.Falloff
tempvalue = tempvalue + 0.5
$.Falloff = tempvalue
)
)
)
------------ [end snip] ---------------
My question is, is it possible to modify this script such that you could hold down a key, and then increment up & down using the mouseCursorY or mouseCursorX position? This would provide a functionality similar to a sculpting program like Mudbox. Is this even possible?
Thanks
