PDA

View Full Version : how to activate the paint tool through scripting?


joshj
10-14-2005, 12:55 AM
how do you activate the paint tool through scripting?

for example,

CreateWeightMap , , "SmoothMap"
SetValue "*.polymsh.cls.WeightMapCls.SmoothMap.weightmapop.weight", 0
SetValue "*.polymsh.cls.WeightMapCls.SmoothMap.weightmapop.wmin", -1
SetValue "*.polymsh.cls.WeightMapCls.SmoothMap.weightmapop.wmax", 1
SetValue "*.polymsh.cls.WeightMapCls.SmoothMap.red", 70
SetValue "*.polymsh.cls.WeightMapCls.SmoothMap.green", 70
SetValue "*.polymsh.cls.WeightMapCls.SmoothMap.blue", 177
ApplyOp "Smooth", "*.polymsh.cls.WeightMapCls.SmoothMap", siUnspecified, siPersistentOperation, , 2
SetValue "*.polymsh.smoothop.strength", 20
SetValue "BrushProperties.Radius", 1

now if I want to activate the brush tool to paint.. how?

Jarno
10-14-2005, 12:14 PM
Hi Joshj,

Try the PaintTool command.
In Keyboard Mapping window you can find out wich command is mappend to a key. And in the customize toolbar window you can find detial like the ScriptName
CreateWeightMap , , "SmoothMap"
........
PaintTool
Jarno.

joshj
10-14-2005, 04:29 PM
Thanks so much! This was my first script so I didn't exactly know where to find everything... and selecting the tool didn't show up in the script editor. So thanks!

CGTalk Moderation
10-14-2005, 04:29 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.