[Closed] Running a macro cancels create object mode
Hello all I ran into something again I created a small macro that im calling on a keypress to pan around
on 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 just
on execute do () --nothing
Is there a way to use viewport.pan without ending the create mode?
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…