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?
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?
