You could use AutoInspect() on the ops returned by ApplyOp, which is
what Softimage does in the code Matt mentioned.
http://wp.me/powV4-2qW
On 08/01/2013 6:47 PM, Matt Lind wrote:
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:*softimage-boun...@listproc.autodesk.com
[mailto:softimage-boun...@listproc.autodesk.com] *On Behalf Of *Adam Sale
*Sent:* Tuesday, January 08, 2013 3:40 PM
*To:* softimage@listproc.autodesk.com
*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