View Full Version : soft selection, falloff hotkey?
nukee 03-10-2003, 07:44 PM just wondering if their's anyway to bind a hotkey to soft selections falloff amount. It would be pretty sweet to be able to change it on the fly :bounce:
|
|
not a bad idea . . .
it is indeed possible, you just have to make a macroscript first and then bind a hotkey to it
i came up with a couple of macroscripts to do this. they rely on the keyboard repeating the key when you hold it down so you can quickly adjust the value of falloff up or down by holding down the hotkey. So make sure to have the keyboard set to repeat very fast.
I set it up so it works fairly nicely with the basic scale I like to work with for most things. As you can see in the code, it increments 0.5 with every repeat. You can adjust this scale by adjusting that value in the script should you desire to.
Basically copy these into text documents named whatever you like, rename the extension to .mcr and place in your UI/macroscripts folder and then go to Customize User Interface to hotkey them
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] ---------------
nukee
03-11-2003, 12:30 AM
WOW!, thanks man. I really appreciate that :D. You just made my day :beer: :beer: :beer: :beer: :thumbsup:
CGTalk Moderation
01-14-2006, 02:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.