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
Ok, then I would suggest looking into using a timer to run your previous script after the key up callback returns. -- Brent From: softimage-boun...@listproc.autodesk.com [mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Andrew Prostrelov Sent: 02 June 2016 22:29 To:

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
Hi Andrew, Have you tried calling the ExitTool method on the ToolContext that was passed to you?

Re: Color from particles to Legolizer?

2016-06-02 Thread Morten Bartholdy
Hi Ed, Great compund :) I will try those and see what I get. //Morten > Den 2. juni 2016 klokken 12:38 skrev Ed Schiffer : > > > Hi Morten > > thanks for using my compound :) > as a guess, I'd go with Get Closest Locations and Switch Context nodes, but > I always get

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 : > 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

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_ctxt) {

Re: Color from particles to Legolizer?

2016-06-02 Thread Ed Schiffer
Hi Morten thanks for using my compound :) as a guess, I'd go with Get Closest Locations and Switch Context nodes, but I always get confused with context as well. wish you luck. cheers On Wed, 1 Jun 2016 at 15:27 Morten Bartholdy wrote: > Hmm, I forgot to actually ask if