decapitator
07-29-2008, 02: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?
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?
