[Closed] Scripts and macros running on startup
Hi,
I have a problem with my scripts that runs on startup. The thing is that to make one macroscript run, the other script need to run first. Here are two scripts:
-- script to run on startup
some_data = "my data"
-- script that uses other script
macroscript TestIt category:"Test" (
rollout TestGUI "" (
edittext _text "data: " text:some_data
)
)
I think macrosripts are run before scripts in startup dierctory, because I get an errors in some_data.
How can I make the first one to run before the macroscript?
if you have 2 scripts that need to run on startup but one needs to run first.
You should be able to add to the one that runs second in your startup scripts folder and use FILEIN on the first line of the of that script to load the script that needs to run first.
I added filein to my macroscripts and still not working
I need to manually open the macroscript, run it, and than it works.
But what I want is to have a running script from the start on the shelf/ribbon. I don’t want to manually rerun all the scripts I need
thx aaandres. This make them work. All my macros work as intended, however I still get a ton of errors on startup. And keeping all my scripts in “stdplugs\stdscripts” completely screws my pipeline… But it’s nice to make it work at least temporary
Here’s the order how Max loads scripts:
http://docs.autodesk.com/3DSMAX/14/ENU/MAXScript%20Help%202012/index.html?url=files/GUID-615D14FB-0F2D-4801-B381-1128C4128C7-57.htm,topicNumber=d28e31345