Glad you got it working.

I don't think there is a way to directly access the undo queue. What 
specifically are you trying to do?
--
Brent

From: softimage-boun...@listproc.autodesk.com 
[mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Andrew Prostrelov
Sent: 06 June 2016 19:06
To: softimage@listproc.autodesk.com
Subject: Re: exit from a CustomTool

; ) it was a tricky way but it works just fine. Many thanks for all your 
assistance.
By the way maybe you can provide me with another one advice ?
XSI native "Undo" command prints as comment current action name like so:
    Application.Undo("")    # Subdivide Polygon
    Application.Undo("")    # Select Object
    Application.Undo("")    # Select Geometry Components
Is there a way of getting whole Undo stack or somehow get this comment messages 
?


2016-06-03 9:55 GMT+03:00 Brent McPherson 
<brent.mcpher...@autodesk.com<mailto:brent.mcpher...@autodesk.com>>:
I was thinking that you could use the TimerEvent in the XSI SDK.

on key up:
  - call timer.Reset(0/*one shot timer*/, 0.1/*short delay*/);

when timer is triggered:
  - call your Python code to activate the selection tool

P.S. I designed ExitTool to be called from the tool's context menu so the fact 
you can't use it on key up is an unfortunate bug.
--
Brent

From: 
softimage-boun...@listproc.autodesk.com<mailto:softimage-boun...@listproc.autodesk.com>
 
[mailto:softimage-boun...@listproc.autodesk.com<mailto:softimage-boun...@listproc.autodesk.com>]
 On Behalf Of Andrew Prostrelov
Sent: 03 June 2016 05:04
To: softimage@listproc.autodesk.com<mailto:softimage@listproc.autodesk.com>
Subject: Re: exit from a CustomTool
 I am not quiet sure that i understand you right. Did you mean right a delay 
timer or use events ?
 The friend of mine suggest EventTimers. Register additional event with a timer 
in it.
 But it was in a context of a slightly different topic.
 Let's assume that we receive KeyUp callback, what a timer should do ?

------
Softimage Mailing List.
To unsubscribe, send a mail to 
softimage-requ...@listproc.autodesk.com<mailto:softimage-requ...@listproc.autodesk.com>
 with "unsubscribe" in the subject, and reply to confirm.

<<attachment: winmail.dat>>

------
Softimage Mailing List.
To unsubscribe, send a mail to softimage-requ...@listproc.autodesk.com with 
"unsubscribe" in the subject, and reply to confirm.

Reply via email to