Hello, I have a small macro and would like to have some text displayed on the viewport when I activate it, I've tried the code from this page:
https://forums.cgsociety.org/t/draw-a-text-in-corner-of-the-viewport/163…
but I get an error Exception message: "registerRedrawViewsCallback() expected function, got: undefined."
My macro is the following:
macroScript LockSnapScale
category:"# sampei"
buttonText: "Lock,Snap,Scale"
toolTip:"Lock,Snap,Scale"
(
actionMan.executeAction 0 "59231" -- Selection: Selection Lock Toggle
actionMan.executeAction 0 "40072" -- Snaps: Snaps Toggle
actionMan.executeAction 0 "40223" -- Snaps: Percent Snap Toggle
macros.run "Tools" "Non_Uniform_Scale"
toolMode.selectionCenter()
)
miauu · 2020-04-29