ScriptOrganiser and Organiser[new]

56 votes
Version: 
1.2
Date Updated: 
02/11/2011


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

Version Requirement: 
Written and tested Max 2012. Not tested in previous versions.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
s25jin's picture

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

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's picture

thank you very much! custom

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?

s25jin's picture

u are my captain!

thx for advice ^^

haavards's picture

Hi, I added these two

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!

harumscarum's picture

color theme

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

AttachmentSize
untitled-1.png 7.94 KB
s25jin's picture

thx script . wish list ^^

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's picture

Tiny update: I noticed that I

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

haavards's picture

Hi, I got some time to work

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's picture

Yes that fixed it, works fine

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's picture

It the same type of error as

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.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.