Whenever I test my code I generally do it in the listener window. The Callback I created works fine when executed from there, but when implemented into my script it gives me a "Call needs function or class, got: undefined"
I defined my function... :/ Why is it not seeing it?
I believe this has something to do with globals and placement (scope) of the code but that stuff blows my mind. lol Been sorta self teaching myself through the maxscript help and scouring forums for help... super slow learning process.
Any help would be greatly appreciated :)
macroScript Bigley_Test category:"Bigley" toolTip:"" ( global MainDialog global rloutOtherRollouts if MainDialog == undefined do( MainDialog = newrolloutfloater "Main Dialog" 232 806 ) if MainDialog !=undefined do ( closerolloutfloater MainDialog MainDialog = newrolloutfloater "Main Dialog" 232 806 ) rollout rloutOtherRollouts "Other Rollouts" ( -- Other Rollouts ) fn MainDialog_Refresh = ( closerolloutfloater MainDialog macros.run "Bigley" "Bigley_Test" ) callbacks.addscript #selectionSetChanged "MainDialog_Refresh()" id:#MainDialogCallbacks -- callbacks.removeScripts #selectionSetChanged id:#MainDialogCallbacks addrollout rloutOtherRollouts MainDialog )