smart menu
Version:
0.1 another script for today :)
this script scans a folder on your PC and creates a menu in 3dsmax's interface with all scripts it finds there (you must specify the path to scan in the script by yourself). all you need to do with your new script is to place it in that folder, and you will be able to access it in 3dsmax interface. no macroscripts support.
Comments
what to do with .MCE ?
Thank you for this "candy" )
My experience:
I've tried to edit script as suggested by Jennyltd, but no luck >>> they (*.mce scripts) opens in editor + I get "Maxscript macroscript error exeption" messages.
MaxFiles
Hi, I Really like this script and use it for my scripts at the moment. I I was thinking would it be able be converted to use max files.
I've changed the file type in the script and it populates with max files. The only problem is that it opens in maxscript editor. Any ideas on how to open the max file? Cheers, John
some notes
1 - macrosripts are not processed by this script, only regular scripts, because it makes its own macroscripts from regular scripts. You need to edit a macroscript you want to use, just remove macroscript definitions with brackets.
2 - be careful while messing with menu structure , it is easy to broke main 3dsmax menu.
I put some of your code under
I put some of your code under that line. Now I get on start up
Unable to convert: undefined to type: FileName <<
Sorry I dont know how to code. :(
v
files = getFiles "C:\Scripts\*.m*"
sort files
str = "macroscript smartmenu" + (ii as string) + " category:\"smartmenu\" buttontext:\"" + (getFilenameFile i) + "\" (filein \"" + i + "\")"
------------------ deleting previous menu
if ((menuMan.findMenu "MyScripts") != undefined) then
Nice work
I let myself editing a bit this
for the "files =" I let it select *.m* so it finds macros and mse scripts and then
str = "macroscript smartmenu" + (ii as string) + " category:\"smartmenu\" buttontext:\"" + (getFilenameFile i) + "\" (filein \"" + i + "\")"
so it executes them from the macros. I hope you find it useful
Also put the script itself in the directory for the menu so I can start it and update the scripts without having to restart max ;)
Ok I'm stupid girl. Now a
triple post. sorry.
Max listener says ok. But I don't see any script under Myscript menubar.
Ok I'm stupid girl. Now a
edit
Ok I'm stupid girl. Now
edit
sorry for my english %)
ladyluck777,
You forgot to put (")
files = getFD C:\Scripts"
Should be so -> files = getFiles "C:\Scripts"
Thanks for the reply :DI put
Thanks for the reply :D
I put new path
files = getFD C:\Scripts"
but I get this error
-- Error occurred in anonymous codeblock; filename: C:\Program Files (x86)\Autodesk\3ds Max 2011\scripts\startup\111_SmartMenu_edited.ms; position: 539; line: 17
-- Syntax error: at bad, expected
-- In line: files = getFD C:\s