Toggle Drying Script (optimized)
Posted: 21 Nov 2009, 02:54
Do you need a hotkey to toggle drying mode for brushes?
Create a custom panel button and Edit it.
Name the button something like: "Brush: Toggle Drying"
Set the first action entry to: "Embedded George Script"
Paste the following code in.
EDIT: Managed to shorten the script down significantly, thanks to a tip from Svengali
Create a custom panel button and Edit it.
Name the button something like: "Brush: Toggle Drying"
Set the first action entry to: "Embedded George Script"
Paste the following code in.
Code: Select all
PARAM NONE
tv_getactivetool
PARSE Result curTool toolArgs
dryVal = 0
WHILE (LEN(toolArgs) > 1)
PARSE toolArgs curArg curParam toolArgs
IF (CMP(curArg, "dry"))
IF (curParam == 0)
dryVal = 1
ELSE
dryVal = 0
END
tv_Cmd curTool Dry DryVal
END
END