|
>I would like to bypass the fact that you have to add a weight map, then add a smooth or push op...
You can create a command to group your new weight map and your new deformer operator like this :
var buttonPressed = XSIUIToolkit.Msgbox( "Clic Yes for a Smooth and No for a Push", siMsgYesNo, "Weighted Operators" ) ;
if ( buttonPressed == siMsgNo )
{ var oWeight = CreateWeightMap(null, null, "PushWeightMap", null, null);
var op = ApplyOp("Push", oWeight , 3, siPersistentOperation, null, 0); op.item(0).parameters("ampl").value = 2 ;
PaintTool(); }
else { var oWeight = CreateWeightMap(null, null, "SmoothWeightMap", null, null);
ApplyOp("Smooth", oWeight , 3, siPersistentOperation, null, 0);
PaintTool(); }
Nothing fancy but it can speed the modeling workflow.
Cheers
-- Guillaume Laforge
On 2/28/07, Ahmidou Lyazidi
<ahmidou.xsi(at)gmail.com> wrote:Hi, about the paint tool, is it possible to access it via scripting to do custom things but directly? I mean access the hardness, softness, spacing for each vertex that is paint and do what ever you want with this?
I would like to bypass the fact that you have to add a weight map, then add a smooth or push op, then paint, then freeze then add a weight map and so on.....
Just paint>deform, paint>deform again to speed up the workflow Or maybe we need some OnPaint_events? I don t know, if this is clear?!
thanks A.
2007/2/27, Bradley Gabe <
withanar(at)stanwinston.com>:
Thanks. I figured that out only moments after posting. Seems like I
can't get anything done anymore without making my stupid mistakes public.
> PaintTool(); > > > > > ______________________________________________________________
> From: Bradley Gabe [mailto:withanar(at)stanwinston.com] > Sent: Tuesday, February 27, 2007 1:50 PM
> To:
xsi(at)Softimage.COM > Subject: Activating PaintTool from a script > > > Anyone know how to activate the PaintTool from scripting, > preferably from jscript? >
> I looked into the PaintPushTool script in the > $xsihome/Application/DSScripts/tools.vbs file, and they are > just doing a call to "PaintTool", but when I try the same
> thing in my script, it raises an error. > Thanks! > -Brad
--- Unsubscribe? Mail
Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi
|