danb4026 Posted March 13, 2009 Share Posted March 13, 2009 I have a simple script (ms file not mcr) that I want to place on my toolbar. Although the script is in my Scripts folder, it doesn't show up anywhere in my "customize user interface" Groups or Categories, so I cannot place it anywhere for easy access. Right now I have to run the script from the maxscript drop down list every time. Is there a way to place this script in the toolbar? I even tried to simply drag and drop on the toolbar, but that doesn't work either. Thanks.. Link to comment Share on other sites More sharing options...
Big Bird Posted March 13, 2009 Share Posted March 13, 2009 I go through this every time I reload my o.s. or upgrade my system. Let's see..customize/customize user interface/toolbars tab/ then find your script on the list to the left. Now if it's not even showing up on the list you obviously can't create the first button. Try this, First to goto scrips/run script and run it (even if nothing happens) then try the steps above. I had to do this before I could make the button once but not sure if it will work for you. Link to comment Share on other sites More sharing options...
Chad Warner Posted March 13, 2009 Share Posted March 13, 2009 Put the script in the startup subfolder in the scripts directory. That way it will run when you start max, and you can assign it to the toolbar. Link to comment Share on other sites More sharing options...
danb4026 Posted March 13, 2009 Author Share Posted March 13, 2009 I tried both methods, but the script doesn't show up anywhere within the customize user interface drop downs. Link to comment Share on other sites More sharing options...
Big Bird Posted March 13, 2009 Share Posted March 13, 2009 Depending on your install there can be more than one scripts folder on your system, you may have to copy the script to the one max is looking at...I use C:/Program Files/Autodesk/3ds Max 2009/Scripts. and then restart Max. Link to comment Share on other sites More sharing options...
danb4026 Posted March 13, 2009 Author Share Posted March 13, 2009 (edited) Thats the same path that I use. I will look for another path. Nope, that's the path. Edited March 13, 2009 by danb4026 Link to comment Share on other sites More sharing options...
Big Bird Posted March 13, 2009 Share Posted March 13, 2009 your .ms file name may be different than the script name on the Custom User Interface list. For ex: the script called "VRayMtlConverter2.ms" shows up as "Convert all scene materials to VrayMtl and......." some long string. so if I'm looking for V on the list i won't find it. Link to comment Share on other sites More sharing options...
danb4026 Posted March 14, 2009 Author Share Posted March 14, 2009 I have gone thru the entire list and don't see anything that could be it. I know exactly what your talking about. Link to comment Share on other sites More sharing options...
Big Bird Posted March 14, 2009 Share Posted March 14, 2009 well I'm stumped.... Link to comment Share on other sites More sharing options...
danb4026 Posted March 14, 2009 Author Share Posted March 14, 2009 LOL......me too!!! Link to comment Share on other sites More sharing options...
anton Posted March 14, 2009 Share Posted March 14, 2009 Two ways you can do it: 1 - post the script in here and i'll make it macroscript for you or 2 - go to the maxscript menu and choose open script, find your script and hit open. Once opened select all the code (ctrl + a) and drag it to the toolbar you want your script to be. I would change the generic icon that max assigns to it to text. To do that right click the button and choose "Edit button appearance", select the "Text button" and name it as you want, just make sure you keep it short. Let me know if you have any issues. Link to comment Share on other sites More sharing options...
danb4026 Posted March 14, 2009 Author Share Posted March 14, 2009 Anton....THANKS so much! I did option 2, and it worked like a charm! I had forgotten that you could take the text and copy it up to the toolbar. Have a great night! Dan Link to comment Share on other sites More sharing options...
SandmanNinja Posted March 15, 2009 Share Posted March 15, 2009 I check 2 places - the same folder name in the My Documents and the same folder name in c:\ Not sure why but some appear in one place and others appear in the other - or at least that's how it seems to me. Give that a whirl Link to comment Share on other sites More sharing options...
danb4026 Posted March 15, 2009 Author Share Posted March 15, 2009 Joel, I checked everywhere, but nothing. I finally, highlighted all the text within the script and dragged to toolbar and, presto, it worked. Link to comment Share on other sites More sharing options...
bragibjornson Posted June 23, 2009 Share Posted June 23, 2009 This might be a bit belated - but something i think is worth sharing. Max has macroscripts and maxscripts macroscripts show up in Customize UI/... maxscripts run are typically run straight from the editor window (CTRL+E) A maxscript can be turned into a macroscript easily in two ways: 1. Declare it at the beginning of your maxscript with this: macroScript Layer Script --THIS IS SCRIPT NAME category:"My Scripts" --This is the Category name in Customize UI buttonText:"Layer Script" --Text in Button toolTip:"Layer Script" --Text of the Mouseover of Button -after you add this - you'll need to save your .ms as a .mcr and install it by running the .mcr from the editor, or drag it into max window. NOTE: CTRL+E for this will only install it when it has this heading. I wont run it anymore. If you delete the four lines, the maxscript will run like normal from the editor. 2. Create a seperate .mcr that references the maxscript file: (This is what i do most) make a .mcr file (i name it the same as the .ms file) put this in it: macroScript Layer Script --THIS IS SCRIPT NAME category: "My Scripts" --This is the Category name in Customize UI toolTip:"Layer Script" --This is the Text of the Mouseover on Button ( on Execute do ( fileIn "$scripts\Layer Script.ms" ) ) -the above is if the script exists in your 3ds max/Scripts folder. if its somewhere else, hardcode it and it will work. Hope this helps. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now