ScriptSpot

Script

ScriptOrganiser and Organiser[new]

By haavards · 2011-02-11

Version
1.2
Version requirement
Written and tested Max 2012. Not tested in previous versions.
Date updated
2011-02-11
Votes
56
Download
Download
Description


I rewrote the old scriptOrganiser from scratch, this time it is 95% pure .net  using c# with visual studio. Maintaining the old maxscript version was a pain since the script is pretty ui-heavy and very verbose code-wise in addition to  mixing the .net framework with maxscript. This time I made it less maxscript oriented so you can use it with all kinds of max related files and other files, hence the name change.. It lacks some of the features that the previous version had. If you want them back, just let me know.

Additional Info

New features:
  • Multiple custom root paths to build the treeview on. Smart building of the tree. (No deep recursion)
  • Max related files are opened in max now (Scenes, import etc). Other files are opened in their native programs.
  • Implemented file watch system that notifies and updates the treeview whenever outside changes are made to the root paths' files and folders.
  • No excess files. It is now only a .dll-file, a startup script and a macro script. (No custom icons or .ini files)
  • Hotbar displaying favourited files and folders
  • Widget displaying on hotbar mouseover with additional options
  • Uses the users own icons for the files.
  • Settings are saved as windows application data.
  • Optional automatic error report sending.
  • Feedback form
  • Uses the users own colors.
Note that it is pretty much untested so you can say this is kind of a beta version for the moment, but I have added an easy feedback form, so if you have any bugs or requests please let me know. I expect it to be some bugs here : ) The gui is still a bit klunky. The first picture shows the root paths option menu where you manage your paths that you want to add to the tree view. Added "favorites" folder and  a hotbar which automatically displays the favorite files and folders, with a widget that pops up on mouse over displaying additional options: Download -- Old version: Scriptorganiser is a tool for managing your scripts in a simple treeview layout, and when hidden it displays a quick access bar where you can add your favorite scripts with custom icons. The image shows the script's layout and most of its characteristics, highlighting features such as internal drag and drop, creation of new folders and scripts, favourites folder and easy editing and running scripts right from the manager. It is easy hide-able so it wont take up too much screen estate. The main idea behind this script is that you can just copy your script folder(with this script inside it) to any other PC and run the script once and have all your scripts ready to go in an instant. Alternatively you can copy your script folder to e.g. a dropboxfolder and use it from there and share it with others. Just run the script from you script folder and the script takes care of the setup! Installation: Just drag this file into a max viewport or run it as a script, and an easy installer will pop up. Download scriptOrganizer_old.mzp The script optionally creates a startup script in\3ds Max 201x\Scripts\Startup\, and a folder named "_SO_" in the folder you choose when installing. You can access the "_SO_" folder by right clicking anywhere in the treeview and choose "Show source files". Tested and written in max 2011. This is my first dive into the dotNet world in maxscript, so I'm sure there are some bugs laying around. Here is some of them that I know of:
  • Renaming of scripts created with the "new scripts" function will sometimes not work, that is, the scriptorganizer script will not let go of the control of the file so it can be edited. A re-run of the script will fix this issue.
  • When adding scripts to the hotbar, the favourite icons get skewed. When going to the treeview layout and back to the hotbar, the icons appear as they should.
Explanation of the GUI buttons (From left to right): Hide: Minimizes the script organizer to the left. Refresh view: Builds a new tree view. Useful if you have made changes to the script folder in windows while running the script. Run: Executes the selected script, if a folder is selected then it is opened in windows. Double clicking a script/folder will do the same thing. Edit: Edit the selected script, if a folder is selected then it is opened in windows. Delete: Deletes the selected folder and sub folders and/or the selected script. Pressing the delete button will do the same. Copy: Copies the selected folder and sub folders and/or the selected script. Paste: Pastes the selected folder and sub folders and/or the selected script. New folder: Creates a new folder inside the selected folder, if a script is selected then a new folder is created where the script is located. New script: Creates a new script inside the selected folder, if a script is selected then a new script is created where the selected script is located. Options Options for the script. More to be added soon. Download old version scriptOrganizer_old.mzp
Comments (67)

jinj · 2018-02-26

it doesn't work in max 2018. would be great an update.
cheers

jinj · 2017-05-08

I think it doesn't work any more in max 2018.
I see the script, I can run it, but no ui
anyone tried already?

jinj · 2018-02-26

yep.. it is there but blank..

edit order

Rokas · 2015-05-21

how to edit order of the icons or even remove them?
[using new organizer]

hustabasi · 2015-02-25

ScriptOrganiser and Organiser[new] download link is not working.

Can you add a Search Window so i can search for a string in the

atka007 · 2014-12-20

I love your tool. I have dozens of flders filled with scripts and use it every day now.
The problem is that i cant find the script that i am looking for sometimes.
Can you add a Search Window so i can search for a string in the script name?
Also would be cool if it displayed a description of the script (the first couple commented out lines in the scrip) upon hovering over the script name.

dsp_418 · 2014-09-22

Not sure it is something wrong with my 3ds Max, but it seems is not working on 2015. Anyone can confirm? That would be a shame, this script it's so useful!

p.s. never mind, it seems it's working just fine! Great!! :)

titane357 · 2013-11-07

Nice script ! very usefull. But .mcr was installed in bad folder, need to move it to another folder to see it in the customize menu.

intheflesh · 2013-01-20

Would be great if we could set a preference to start in hotbar mode when 3ds max is launched. Currently it's opening in the full width for me on Win 7 3ds Max 2012 PU 10 x64

Great work!

haavards · 2013-01-21

I added that option now, redownload the .mzp and replace the files or reinstall the script. Let me know if it works.

dsp_418, it should be there by default. If not just run the Macro_scriptorganiser.mcr file that is in the .mzp file. Just open it with a winzip or a similar program to extract it.

intheflesh · 2013-01-23

Perfect, works great!

haavards · 2012-12-07

Hi!
The dock issue has something to do with the Aero theme if I remember correctly. Maybe try disabling the Aero theme if you got that enabled. I looked into it some time ago but I can't remember if I fixed in this new version that I have had lying around for half a year now. I'll upload the new version as a separate file since it can cause some problems for some (that has most likely been fixed now).

http://folk.ntnu.no/havardsc/scripts/ScriptOrganiser.dll
Just replace the original file in max's root directory with this one.

Bunch of bugfixes, but the main two things that I remember is that the annoying error that pops up when adding new files to favourited folders is now gone. You can also run and install macroscripts using the right click menu.

dsp_418 · 2012-12-08

Thank you for the dll. I tried it but same issue. As you said it's related to Aero, as I turn it off the issue disappears. Kinda funny as I've issues with the basic windows theme in other apps! :)
Hopefully one of the next version will fix the aero issue, for now I can create a button and call it whenever I need it as a floating window, that should works.

Thanks.

edit: the only thing I can't find the script among the other in the toolbar customization.

Dock issue

dsp_418 · 2012-12-07

Great script,

just a shame the dock feature cause the following issue.

When is docked I can't click any script or folders (nothing on the tree actually), as I move the mouse over the Organizer the cursor changes to the dock cursor and thus I can only dock or un-dock it.
Once un-docked scripts are clickable again. I'd love to keep it docked as having a floating window is not very handy.

Thanks for the work!

Using .mzp

Kinofaya · 2012-11-13

Hi,

I am trying tou use your script, but most of the script i have are .mzp, how can I deal with that ?

Thx

supi

huschi · 2012-08-01

really a usefull tool. The once think I'm missing is the ability to rename the basefolders (via RMB). Anytime I try this, a .NET Dialog appear and will send anything to anywhom. Btw. who is "anywhom", the recipient from these infos? Is it you?
Also what I'm still missing since the last version is the ability to resize it horicontally...
A doubleclick leads me to a complete other place on my harddisk. Was better implemented in the earlier version. Still no drag and drop. No chance to build a new folder. Maybe its already implemented but its still not working about the RMB-Click Bug. Wyh do you dont just use the explorer librarys from .net. I'm sure there is a way for it and all these tiny problem would be solved with a big BUUM.... maybe..;-)
If I add some or just one script(s) into one of the indexed folders during Max is up, it was up, means it crashes immediately.

Anyway keep going.

Thanks for your developing ;-)

Cheers

jinj · 2012-05-10

i installed max 2013 again....
dunno what it was... but now it installed without problem and working fine... thank you

haavards · 2012-05-10

Your are using the old .ms or .mcr file. Before installing, delete the soStartup.ms and the Macro_ScriptOrganiser.mcr.

jinj · 2012-05-10

yes i downloaded more than once...

edited
error at line 2:

dotNet.LoadAssembly (getDir #maxroot + "ScriptOrganiser.dll")
i downloaded the ddl from your site and edited the MaxDotnet.config too

this is not comparing right now with dll for max 2012
error at line 6:

global commandPanelHeight = (filterString (getINIsetting (cui.getConfigFile()) "Command Panel" "FRect") " ")[3] as integer

haavards · 2012-05-10

Hi,
are you sure you have the latest version? Max2013 uses some different files, so my guess is that you have the older version. If not, can you tell me which line in the script that throws the error?

haavards · 2012-04-22

Updated the script so it supports max2013. It crashed previously since max2013 switched from .ini to .xml for the custom interface files. As far as I have found out the change was not documented in the help files.

jinj · 2012-05-10

i'm not able to install it in max 2013... and i did it manually extracting the files from the mzp....
if i run the script from the start up folder i got this error:

---------------------------
MAXScript FileIn Exception
---------------------------
-- Unable to convert: undefined to type: Integer
---------------------------
OK
---------------------------

any clue on this?

jinj · 2012-04-17

maybe it's just me... but if i try to run a *.mse it open with notepad....
in the dropdown menu run maxscript isn't listed.
any clue?
thank you

haavards · 2012-04-14

The new script has a macro script placed with the other default macroscripts; Macro_scriptOrganiser.mcr. To start the old one run the _so_scriptorganiser.ms

jinj · 2012-04-13

yes i use the scroll wheel.... i'm using the old one on my laptop
the new one in the office, there i have a big screen so space isn't a problem...
btw if one close the script is there a short cut or another way to open it?

thanks

Hi jinj

haavards · 2012-04-13

if I remember correctly the script should have some scrollbars at the bottom, you could also use the scroll wheel on your mouse. If the scrollbars are not showing, maybe you could adjust the height of the treeview. In the "on treeViewRollout open do" handler add something like treeview.height = yourDesiredHeight. To make a smaller indent for each subfile in the treeview you could add treeview.indent = yourDesireIndent in the same place.
Thats the best I could do from the top of my head, it's a long time since I touched the old version and Im not using a PC with Max installed so I cant check it myself. May I ask why you are using the old version?

jinj · 2012-04-12

great update for this script...
it's great to have it... it avoid the use of toolbars... and so on.
i have a request... could you add the ability to resize the ui of your script also when it's docked....
when i open it on the laptop while i'm out... it use a lot of the space and it's not nice to reduce it and open again when you need it.

i modified the setting of the old one... so it's more comfortable for the simple use on the laptop.... it avoid the use of all the not necessary icon button..... annoying is that i don't know how to make move the selected folder of the tree to the left side of the window so to can view clearly the name of the scripts or sub folder....

Attachments

Hi

haavards · 2012-04-12

harumScarum: It sounds to me like your are using some of the old files, try deleting the scriptOrganiser.dll, soStartup.ms and the Macro_ScriptOrganiser.mcr and do fresh install of the script. I've added the possibility to toggle the icons on and off now, it's an option in the settings tab.

s25jin: Nice informative video! I've fixed it so Max don't crash when you try to save files from the web to the rootpaths. The reason for the crash is that the new file event in the script is fired but the file is still not yet created (the content of the file is being streamed to an buffer). So now you will get a message saying the file is not found, just ignore it, the file is there.

I also added correct sorting with the favourites folder always being at the top.

max melt down when i add to new file in favorite forder from web

s25jin · 2012-04-11

error    <- am gonna make movie   .... contral copy and paste in my pc.. that ok. but when i save direct from web ...such sad happen  ..

harumscarum · 2012-04-11

thank you very much! custom colors is ok! but is it possible to put setting file into 3dsmax folder?

there is one more isuue - max collapsed at start if soStartup.ms is in startup folder

PS really like text buttons - any way to switch to it?

haavards · 2012-04-11

Hi,
I added these two extensions for you, just replace the ScriptOrganiser.dll in the max root directory with this file: http://folk.ntnu.no/havardsc/scripts/ScriptOrganiser.dll. I also have updated the .mzp but since the only change is in the .dll file you only have to replace that file. In the future if you want to add custom extensions locate the settings file in win7/vista: windowsdrive:\Users\yourusername\AppData\Local\Autodesk,_Inc\3dsmax.exe_Url_somerandomcharactershere\0.0.0.0\user.config and add this highlighted snippet:
http://folk.ntnu.no/havardsc/misc/customExtensions.png

To change the colors install the new dll file and check the custom color checkbox in the options tab. Then open the settings file as described above and change the desired colors. Standard RGB, range 0-255. I know it's not very user friendly, but that is all I have time to for now. Let me know if it works!

u are my captain!

s25jin · 2012-04-11

thx for advice ^^

color theme

harumscarum · 2012-04-07

thanks for great script
could you please add "text color" in options? for me it looks like this

Attachments

thx script . wish list ^^

s25jin · 2012-04-07

fbx import that cool! can u add to gamebryo fotmat? nif,kf import add please. i used to extra extension format nif and kf or how can i add to file extension

haavards · 2012-04-01

Tiny update: I noticed that I had broken the whole script, uploaded a hopefully working version now :)

haavards · 2012-04-01

Hi, I got some time to work on this this weekend.
I fixed the close-issue and added a favorites folder where you can add files and folders by right clicking on them and select "Add to favorites". I also added a hotbar like the one in the previous version. This one is a bit slicker though, it uses windows icons, in addition to a widget that pops up when the mouse hovers over the different files in the hotbar. The expand and close icons and the new icons in the toolbar of the treeview are icons I found in the max folders, I dont know if they fit. Im pretty bad with the aesthetics of GUI design :)
I also did some refactoring that could have broken something, I only did some quick tests and it seemed to be working.

asymptote · 2012-03-28

Yes that fixed it, works fine instantaneous with no lag or delay.
Now Max 2011 compatible,:)

thanks again.

(fyi, I noticed the Text "Close" button doesn't seem to work....no biggie, I just thought you might like to know)

haavards · 2012-03-28

It the same type of error as last time, the script tries to execute a non-existing method. It seems that versions prior to 2012 miss some of these methods, but they do exists in maxscript so I just call maxscript code instead. So you don't have to anything, the error is on my part :)

I updated the script again, let me know if it works.

asymptote · 2012-03-28

Thanks, Dock/Undock and resize works perfectly now, but I still get this new error message when trying to run any script.

System.MissingMethodException: Method not found: 'Boolean ManagedServices.AppSDK.LoadFile(System.String)'.
at ScriptOrganiser.FileUtilities.RunFile(FileType fileType, TreeNode node)
at System.Windows.Forms.TreeView.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Maybe something wrong with my Dot Net installation?, afaik, win 7 x64 SP1 has most of the framework installed.
Can you suggest anything I might need to install to get this running.?

I'll download Max 2012 demo tonight and see if that fixes anything.

haavards · 2012-03-28

Hi, great feedback! I hopefully fixed the error which I think was caused by taht max2012(which I use) uses a newer and updated version of the managedservices.dll. You can now also resize the undocked window. I plan to add that the size and position of the undocked window is saved.

Redownload the script and delete /root/Scriptorganiser.dll and root/Scripts/Startup/soStartup.ms

I've only tested this with max2012 so I really don't know if it would work, so let me know :)

asymptote · 2012-03-28

I'm getting same error as crystal3d :(

I like the overall look look of this version, it's VERY smooth and slick, less cluttered,
....only one thing, I can't seem to resize the UnDocked window, I have Outliner open most of the time docked to the left of my viewport
, so would prefer to run this undocked.

Running on Max 2011 64 bit SP2 on Win 7 64 SP1.

Thanks for your efforts.

it errors when i double click on any script.

crystal3d · 2012-03-28

 

haavards · 2012-03-27

I posted the new version now, let me know if you want something added or fixed :)

tassel · 2012-03-28

Nice. This one is fast.

Things i liked about the old one:
- Favorites
- Minimize function

Option Sugestion:
- Option to Select which files to be viewed. For example: (MS|MCR) or (ALL FILES)

Nice Jobb :)

asymptote · 2012-03-24

Cool, then post it and let us find the buuugggggssss :)
j/k...look forward to it.

haavards · 2012-03-24

Actually, i have had a new version of this almost finished for a couple of months now. I can post it this weekend if I got time :)

asymptote · 2012-03-23

Just wondering if this is still being developed ? no updates for a while ;)

ladyluck777 · 2011-06-09

Oh I have to try this. I was looking for a way to collect all my scripts and make it possible to use another workstation with my collection.

haavards · 2011-05-20

Yeah, I get the same thing in max2010 as well. Don't know what causes that. But thanks for confirming it!

shopkeeper · 2011-05-20

Thanks for your help installing the script manually.

Have have a little issue when hiding the toolbar thats created on the left, in that it doesn't reduce to a small size as you have shown in your screenshots?

This might be an issue with maxs design 2010.

Attachments

haavards · 2011-05-20

Hi,
the only way to make it smaller when docked is to edit the _SO_scriptorganizer.ms and change the width of the docked rollout there.

At line 660 and 1052: cui.RegisterDialogBar scriptorganizerFloater minSize:[200,400] maxSize:[260,1676]
change the x.value of the maxsize property to the desired with. Note when making it smaller some of the buttons at the top may not be visible!

nice script

tonydingo · 2011-05-20

I'm tried it. very nice.many thanks

haavards · 2011-05-18

You can install it manually by unzipping the files to a folder and run the _SO_scriptorganizer.ms file. But dropping the .mzp file into the viewport should work. You will be prompted for some install options. But since you get the somewhat ambiguous error message, it means that the folder you picked for installing the script probably only has a read-only permission. You can change that in the folder properties.

jinj · 2011-05-19

hi
cool script... that avoid to build icons and button.. just by running a single script for all...
there is only one thing that a i dislike.. and it's how large it is when docked :(

is there a way to make it smaller when docked?

'Writing Permission' error

shopkeeper · 2011-05-18

Maxs script tells me "Instalation failed. You need to have writing permission for the install folder"

I am using Maxs 2012 on Windows 7 64 bit.

Am I current in assuming the download needs to be unzipped first before dragging the install.ms file into the maxs viewport? I tried dragging the zip file into the viewport but nothing seem to of happened.

haavards · 2011-05-17

Hmm, I need to look at that problem when I got time.

I'll "add open folder in explorer" to the right click menu at the same time. Right now you got something similar. If you double click a folder it will open that folder in windows explorer.

asymptote · 2011-05-17

Yup, ini's fine with full permissions, still loads docked (minor issue)
An "open folder in explorer" function to the right click menu would be cool ;)

haavards · 2011-05-17

Hi.
It sounds like the .ini-file is not being written when you change that option. Check if you have writing permission on the file, and check if the startDocked is set to true/false before and after changing that option.
Thanks for the feedback!

Edit: The .ini-file is located in the _SO_ folder where you installed the script.

asymptote · 2011-05-16

This is a very neat script, but I'm having a few problems with it.

Options don't work for me (Max 2011 32 bit), It starts docked, even when the box is unchecked.

When I float the window, minimise and expand, it's docked again.

anyway I hope you keep up with dotnet and improve this script, VERY cool , it just seems a bit buggy at the mo'

+1 vote

slight hiccup

snailspeed · 2011-02-28

Hi Haavards,

This sounds like a neat little scripts, but I've come up against a problem.

I've minimised the bar and I cant' seem to expand it again. I can't click the buttons. Instead all the cursor wants to do is to tear the bar off or dock it again.

Haven't figured out if this a problem with my 3dsmax yet, but I'll have a play and find out.

Scrawld

EDIT: This is with 3DS MAX 2010 64bit. I just re-read the description and saw the last line where it says it will not work with lower versions. Oops, perhaps thats why.

error message

mustafa mamdouh · 2011-02-15

@haavards
yes i get a message when i tried to install it and i still get it every time i run max

--Runtime error: fileIn: can't open file -
"D:\Downloads\_SO_\_SO_Scriptorganizer.ms"

hope that help :)

Hola!

haavards · 2011-02-15

titane357: You can change the script folder by installing it again. When I got time I will add an option to do so inside the script instead of reinstalling it :)

mustafa: When I try to run the script in versions prior to max2010 it just shuts the whole program down without any error message, so debugging it is kind of hard at the moment. Do you get any errors messages?

not working in 3ds max 2009 - 64bit

mustafa mamdouh · 2011-02-14

any hope for that :)

titane357 · 2011-02-14

nice script !! how can I change the script folder ?

tassel · 2011-02-12

I've used this script a while now since I managed to "trick" Haavards to make this in lack of max script knowledge ;)

I recommend it strongly. :o)