Thanks for the reply!
Are you referencing this code:
if not ButtonExists toolbar_hwnd btnText then
(
local mbdata = gi.macrobuttondata.create macro_settings_ID “” “DropToSlate Settings” 0 “DropToSlate”
local toolMacroItem = gi.toolmacroitem.create 24 24 mbdata 31
toolbar.AddTool toolMacroItem toolbar.NumItems
local items = windows.getChildrenHWND toolbar_hwnd
UIAccessor.SetWindowText (items[items.count])[1] btnText
)
Do you run this code straight in the MAXScript editor? Running this code will not do anything. Running it for a second time will get this error:
– Error occurred in anonymous codeblock; filename: ; position: 40; line: 1
– Type error: Call needs function or class, got: undefined
– MAXScript callstack:
– thread data: threadID:3396
– [stack level: 0]
– In top-level