RE: exit from a CustomTool

2016-06-15 Thread Brent McPherson
2016 11:13 To: softimage@listproc.autodesk.com Subject: Re: exit from a CustomTool I wonder is there a way to filter events by active window name or something ? I wrote a couple of siKeyDown, siKeyUp events but they work in all XSI windows. So if i use this events a can't use this shortcuts in XSI

Re: exit from a CustomTool

2016-06-14 Thread Andrew Prostrelov
I wonder is there a way to filter events by active window name or something ? I wrote a couple of siKeyDown, siKeyUp events but they work in all XSI windows. So if i use this events a can't use this shortcuts in XSI to perform any other actions according curent active window. For example if i use

RE: exit from a CustomTool

2016-06-07 Thread Brent McPherson
istproc.autodesk.com>] On Behalf Of Andrew Prostrelov Sent: 06 June 2016 19:06 To: softimage@listproc.autodesk.com<mailto: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 ma

Re: exit from a CustomTool

2016-06-06 Thread Andrew Prostrelov
rectly 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 >>

Re: exit from a CustomTool

2016-06-06 Thread Andrew Prostrelov
ftimage@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 cur

RE: exit from a CustomTool

2016-06-06 Thread Brent McPherson
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 na

Re: exit from a CustomTool

2016-06-06 Thread Andrew Prostrelov
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] On Behalf Of Andrew Prostrelov > Sent: 03 June 2016 05:04 > To: softimage@listproc.

RE: exit from a CustomTool

2016-06-03 Thread Brent McPherson
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] On Behalf Of Andrew Prostrelov Sent: 03 June 2016 05:04 To: softimage@listproc.autodesk.com Subject: Re: exit from a CustomTool I am

Re: exit from a CustomTool

2016-06-03 Thread Andrew Prostrelov
Here is an event timer realisation. https://db.tt/6KA5jS1U But i don't know why the Timer Event fires only one time. It didn't runs repeatedly. -- Softimage Mailing List. To unsubscribe, send a mail to softimage-requ...@listproc.autodesk.com with "unsubscribe" in the subject, and reply to

Re: exit from a CustomTool

2016-06-02 Thread Andrew Prostrelov
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

RE: exit from a CustomTool

2016-06-02 Thread Brent McPherson
@listproc.autodesk.com Subject: Re: exit from a CustomTool I tryed to use ExitTool in KeyUp callback it didn't work CustomTool_KeyUp(ToolContext& in_ctxt) { in_ctxt.ExitTool(); } the same in Draw() callback CustomTool_Draw(ToolContext& in_ctxt) { in_ctxt.ExitTool(); } The only

Re: exit from a CustomTool

2016-06-02 Thread Andrew Prostrelov
I tryed to use ExitTool in KeyUp callback it didn't work CustomTool_KeyUp(ToolContext& in_ctxt) { in_ctxt.ExitTool(); } the same in Draw() callback CustomTool_Draw(ToolContext& in_ctxt) { in_ctxt.ExitTool(); } The only callback it works for me is MouseUp(). And sine i want quit

RE: exit from a CustomTool

2016-06-02 Thread Brent McPherson
-bf02334bf002,hash=a05b0c9c75ce2ceb2deec6c4d8f2632d1 -- Brent From: softimage-boun...@listproc.autodesk.com [mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Andrew Prostrelov Sent: 02 June 2016 13:57 To: softimage@listproc.autodesk.com Subject: exit from a CustomTool Hi. I suppose this one

Re: exit from a CustomTool

2016-06-02 Thread Andrew Prostrelov
Or maybe i can somehow force run one of a CustomTool callbacks ? It would be handy too. 2016-06-02 15:57 GMT+03:00 Andrew Prostrelov <prostre...@gmail.com>: > Hi. > I suppose this one is a simple question but so far i can't handle it: > how should i exit from CustomTool regis

exit from a CustomTool

2016-06-02 Thread Andrew Prostrelov
Hi. I suppose this one is a simple question but so far i can't handle it: how should i exit from CustomTool registered by my XSI plugin ? I want exit from my tool after shortcut CTRL+Z was released. // So i register this shortcut ... CustomTool_Activate(ToolContext& in_