PDA

View Full Version : Running a macro cancels create object mode


decapitator
07-29-2008, 03:36 PM
Hello all I ran into something again I created a small macro that im calling on a keypress to pan aroundon execute do (
if viewport.IsPerspView() == false do (
vptPos = (getViewSize() / 2)
mousePos = (mouse.pos * -1)
viewport.pan (vptPos[1] + mousePos[1]) (vptPos[2] + mousePos[2])
max views redraw
)
)This works fine, except for what I want. Which is when your in create mode (think of when drawing a spline) it ends the create mode and you wont be able to continue. Everytime a macro is run it ends, no matter if it does anything or there is juston execute do () --nothing
Is there a way to use viewport.pan without ending the create mode?

ZeBoxx2
07-29-2008, 04:03 PM
semi off-topic.. you know you can hold the 'i' key (default) to pan the viewport while working with things in that viewport, right?

decapitator
07-29-2008, 04:46 PM
semi off-topic.. you know you can hold the 'i' key (default) to pan the viewport while working with things in that viewport, right?*runs and hides* ehh no:blush: (atleast I wasnt the only one at the office that didnt know that)

That kinda does what I was planning so thats one less burden to carry but still it might be usefull to know if there is a sollution for the problem. Just in case I ever think of something completely useless again..

CGTalk Moderation
07-29-2008, 04:46 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.