Notifications
Clear all
[Closed] custom vertexpaint toolbox – access colorpicker tool?
Jun 26, 2008 11:39 am
Hello everybody!
Im new to maxscript and currently Im scripting a vertexpainting-toolbox that is tailor-made for my terrain-shader.
So far it simply calls the standard vertexpaint-functions.
Now Im trying to implement the colorpicker tool and I am stuck.
I need to detect whether the user picked a new color and the transfer this new color to my toolbox.
Theres two ways i could do this, but I dont whether those are relizable:
- Constantly watch the 3Dsmax vertexpainting tool and whenever a value is changed, send that value to my toolbox.
- While in colorpicker mode, check for mouseclicks and on mouseclick send picked color to my toolbox.
Currently Im synchronizing the tools like this:
on ckbToolsPick changed state do(
if state == on
then updateVPT(0)
else updateVPT(6)
)
This then calls the following function:
function updateVPT toolID =(
--toolID: 0=pick
if toolID == 0 do(
ckbToolsAdd.state = off
ckbToolsBlur.state = off
ckbToolsContrast.state = off
ckbToolsRemove.state = off
ckbToolsReplace.state = off
VPT.curPaintMode = 8
)
...
Can you tell me how I might realize this functionality with maxscript?
Thanks alot in advance!