Notifications
Clear all

[Closed] macroScript that runs another maxscript?

I have create a script that adds a custom utility. I would like it to auto load when max starts. I have tried creating it into a macroscript but I keep getting errors. I would like to make a macroscript that will open and run the maxcript utilty I created, so I just have to click a button to load my script. Any suggestions would be great. Thanks a bunch in advance.

-bnvm

3 Replies

Could you tell us what you have tried and what errors you got? I’m not really sure what you’re after but a macroscript is probably all you need. Macroscripts can be assigned to buttons, keyboard shortcuts and (quat) menus.

  • Martijn

I have a maxscript that create a rollout with lots of buttons. When you run the script it creates a rollout on the utilitites panel. this utility has a few buttons. One opens the main rollout and the others are for buttons that display information using messageboxes on how to use the script. I took the script as it is, that works great, and added the macroscript name, icon, and others to the top of the script and surround everthing else with (). I can usually get the script installed as a macroscript and get a button on the UI.

when I restart max I get an error. the error changes but it is alway caused by max trying to evalute the text in the message box from the info button. Its very strange. This happens when I use the maxscript as a startup script, and assign the macroscipt it creates to the UI.

-bnvm

Ok.

Remove all actual code that might be sensitive and leave only the basic skeleton of the script that still causes the same problem. Then post it here so we can tell you what you are doing wrong. (Hell, some people are posting even whole functioning scripts here, I am not trying to steam your ideas! :))

My crystal ball is in service this week, I cannot tell you what the problem is without looking at what you are doing. In fact, I have zero idea why you are creating rollouts in the Utilities panel – nobody does this since around Max 3 when MacroScripts were introduced.

Even posting the actual text of the error message printed in the Listener would be a good step.

Thanks.