erik_j
08-23-2007, 11:36 PM
I just did another script first time since max 9 and I have this weird error with an mcr that runs a function in a struct loaded to a button.
the struct and its function are defined in a .ms file in the startup folder (tried both in local settings\application data\autodesk\... and under max program folder).
it works only on the occasion when I start up max without the mcr loaded as a button and then add it anew.
if I then exit max and open max again the button will be there since I added it last time but now the button won't have access (or something?) to the defined struct and function even though they were defined on startup as the ms file loaded fine. I can call the function from the script listener.
but if I would've removed the button before I exited and added it again when I launched max again then it will work fine.
if it's relevant I add the button by dragging the macro from the customize ui actions list to the toolbar.
anyone know how to solve this?
I guess the error might be in my scripts so here they are: nim_rename_mirrored.zip (http://nim.pansarvagn.net/nim_rename_mirrored.zip)
the struct and its function are defined in a .ms file in the startup folder (tried both in local settings\application data\autodesk\... and under max program folder).
it works only on the occasion when I start up max without the mcr loaded as a button and then add it anew.
if I then exit max and open max again the button will be there since I added it last time but now the button won't have access (or something?) to the defined struct and function even though they were defined on startup as the ms file loaded fine. I can call the function from the script listener.
but if I would've removed the button before I exited and added it again when I launched max again then it will work fine.
if it's relevant I add the button by dragging the macro from the customize ui actions list to the toolbar.
anyone know how to solve this?
I guess the error might be in my scripts so here they are: nim_rename_mirrored.zip (http://nim.pansarvagn.net/nim_rename_mirrored.zip)
