quick addition:
Use
op = Application.ApplyOp("Smooth", "torus", 3, siPersistentOperation,
null, 0)
Application.InspectObj(op,null,null, *silock*)
so you could lock the PPG, so that it wont disapear if you run another
command after this
Am 09.01.2013 00:47, schrieb Matt Lind:
Generally speaking, you don't want PPGs and other UI displaying when
running code. That's why ApplyOp() doesn't spawn a PPG. The menu
that calls the smooth deformer probably has a little code wrapped
around ApplyOp() to open the PPG if successful.
Matt
*From:*[email protected]
[mailto:[email protected]] *On Behalf Of *Adam Sale
*Sent:* Tuesday, January 08, 2013 3:40 PM
*To:* [email protected]
*Subject:* Force ppg to open on script launch
I'm a little confused as to why the following does not work:
Get a sphere
Run Deform > Smooth
PPG appears and all is good.
Now, take the generated command and run it through the script editor
ApplyOp("Smooth", "torus", 3, siPersistentOperation, null, 0);
This time, no PPG appears.
Any idea why? And is there a way to force a ppg launch when I tun the
command from a button or from the script editor?
Thanks :-)
Adam