Well, that's too bad :/
Le 20 oct. 2014 14:17, "Luc-Eric Rousseau" a écrit :
> it's more complicated than a while loop.. you have to pump OS messages
> for the tool to work and the user be able to click on stuff and the
> viewport to redraw.
> You also need to prevent re-entrency (i.e preventing
Thanks for the explanation anyway
Le 20 oct. 2014 18:30, ahmidou@gmail.com a écrit :
Well, that's too bad :/
Le 20 oct. 2014 14:17, "Luc-Eric Rousseau" a écrit :
it's more complicated than a while loop.. you have to pump OS messages
for the tool to work and the user be able to click on stuff
it's more complicated than a while loop.. you have to pump OS messages
for the tool to work and the user be able to click on stuff and the
viewport to redraw.
You also need to prevent re-entrency (i.e preventing launching a new
command while current command is still running) which would
destabilize
I see...
A message is just a while loop waiting to get the instruction to stop,
right?
So if I wrap the tool into a command the will wait for a plugin.Userdata to
be valid and return it it should work I guess. Any thing against that?
Thanks
Le 20 oct. 2014 11:45, "Luc-Eric Rousseau" a écrit :
>
right, it's not possible because you'd have to run your own message
loop like pickelement does, and there is nothing for that in the SDK.
On Mon, Oct 20, 2014 at 11:34 AM, Ahmidou Lyazidi wrote:
> I'm not sure yet it's going to work, I'm trying to replicate a picking
> cession as the factory one,
I'm not sure yet it's going to work, I'm trying to replicate a picking
cession as the factory one, but when you pick an object it's opening a
contextual menu, and return a string depending of the choosed item in the
menu.
Unfortunately calling a custom tool is a non blocking command, the rest of
y
if it doesn't work i guess you could use push that return value to
'userdata'?
On Sun, Oct 19, 2014 at 4:53 PM, Ahmidou Lyazidi
wrote:
> Hey list,
> Does anyone know a simple C++ trick to return a value from a tool on exit?
> I'm just asking before starting to struggle with this in case someone
Hey list,
Does anyone know a simple C++ trick to return a value from a tool on exit?
I'm just asking before starting to struggle with this in case someone
already had to do this.
Thanks
-A
---
Ahmidou Lyazidi
Director | TD | CG artist
http://vimeo.com
8 matches
Mail list logo