Message 1 of 11

Not applicable
06-19-2016
11:58 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello. I'm a complete noob in programming and want to get the following: When max is starting up, I'd like to auto open some panels I use a lot. So I used the macro recorder to record some commands and I placed them in a script in the script startup folder. The script is executed during Max startup but the panels that auto open are closed again. I suppose that this has something to do with the execution of other scripts during Max startup. So I started my own script with a sleep command of 20 seconds to give the other scripts time to do what they have to do. But I see that the sleep command holds the execution of every script during Max startup. And when executing my script is resumed, something closes the panels again. So I removed the sleep command. Can someone help me what to do? Ho can I make my script execute after, say 30 seconds, after Max viewports and scripts has finally settled down? This is the script I made: macros.run "Track View" "LaunchFCurveEditor" -- Curve Editor Toggle macros.run "Scene Explorer" "SELayerExplorer" -- Scene Explorer Toggle actionMan.executeAction 135018554 "32771" -- Particle View Toggle actionMan.executeAction 0 "50048" -- Tools: Material Editor Toggle actionMan.executeAction 0 "60010" -- Render: Render SetUp Toggle actionMan.executeAction 0 "40029" -- Render: Environment Dialog Toggle Greetings, Ludo
Solved! Go to Solution.