[Closed] PickPoint not working on altexecute
I am just messing around with some code, testing out some implementations of the
on altexecute type do
(
… code…
)
clause for macroscripts. I have only used this a couple of times, but it has proved handy when I have. But when I tried it out with the “PickPoint” command, the alternative execution freezes, and can only be exited by using the escape key.
Here is the little test macro
macroScript PickTest category:"TestMacro"
(
on execute do
(
p1 = PickPoint snap:#3D
point pos:p1 wirecolor:[255,0,0]
)
on altexecute type do
(
p2 = PickPoint snap:#3D
point pos:p2 wirecolor:[0,255,0]
)
)--End of Macro
I am just creating a red point helper at the picked point for the standard execution. For the altexecute I am trying to create a green point helper on the picked point, but these freezes and fails, even though it is the same code!
I am sure I am miss understanding something very basic as regards the alt execution, if someone could put me straight it would be very helpful
Thanks for your time ,
Rich
hi rich,
that certainly is a strange one – it knocks out all my quads and right click menus!
it works with other code, just not the pick point. only way round i can think of is to ditch the alt execute and detect a key press (like Alt!) as an if statement for the wirecolor of the point. but thats not really solving the issue of testing the altex method!
regards, pete
You know, I think I am going to have to resort to that, since I have found no way around it totalling the quad menus etc as you described.
The whole thing came from wanting 2 altexecute methods, which I was going to resolve with a key detect as you suggested.
Now I think I am going to ditch the altexecute method and as you said, have 3 different execution modes of 3 different key combinations! Less easy to remember, but at least it will run smoothly.
Thanks for looking at that mate, it is good to know that it flips out on someone elses setup too.
Take care,
Rich
P.S. Hopefully ill only post this once this time
heh heh, no problem!
P.S. Hopefully ill only post this once this time
maybe the post button is altexecute enabled?!