Notifications
Clear all

[Closed] New Tool for Scripters: Supra?

Hi all,

I have updated the code again:

– v0.5: Docks faster, remembers dialog size correctly

Good luck,
Light

Hi all,

Just rewrote my script browser from scratch and thought I should share.

Here is the screenshot:

You can get it here > Light > Production Tools > Supra

Don’t forget to get the required C4 function library.

It only comes with a single code file, which should be placed under stdscripts. Creates macroscript itself when not present.

Quick help:

Click a script to edit
Ctrl click a script to delete (with confirmation)

Click a directory to expand/collapse
Ctrl click a directory to open it
Shift click a directory to expand/collapse all subdirectories

Right click inside the treeview to expand/collapse all nodes.
Shift right click to reset the dialog size
Ctrl right click to refresh scripts

Drag inside the treeview to move the dialog.

Filter shows the scripts whose name matches the provided string (case-insensitive)
Search allows you to search for a string inside the scripts (case-sensitive)

If you decide to use both of them, optionally first use the filter then the search feature, because filtering is faster than searching.

The rest is obvious.

Feedback, ideas, and the like are always welcome.

Light

Hi light,

That’s a great little utility. I had been using scriptman but i like yours more. Thanks very much!

Thanks alot Peter. I am glad you liked it.

Light

hey Light, after a morning’s use of your script, i dont know if something like this is useful or not, but i find myself having lots of scripts and functions that i manually run each time, (I know I could just create macros but i guess it’s a case of not having my UI cluttered with too many.)

Would there be a way of taking the listbox functionality that you already have and applying a way of running the selected script with, say CTRL+click?, that way i can leave your window up the whole time and run my scripts to my hearts desire!

Also, at the mo, i’ve put it in the .ms file in the startup>script folder. When i restart max, it resets the position to 0,0. Can it remember it’s last screen pos even after a restart, or is this something to do with the pos variable in the macro? (reason i use the .ms and not the macro is i want it to start each time i load max!)

Thanks again Light, i wouldn’t ask for any changes normally ,except for the fact that your script is going to be so useful!

Hey Peter,

Thanks for the idea. I think it makes alot of sense to simply run a script without opening it.

I have now added that functionality, and ctrl click now runs the selected script, while shift click deletes it.

As for the last pos, the dialog remembers every setting, including that. So I recommend doing 2 things:

  1. Place the script file into stdscripts folder, along with C4 function library
  2. Evaluate this line in the listener:

getINISetting (getMAXINIFile()) “Light” “Supra”

I store the settings inside the 3dsmax.ini file, so the script should be able to write into it.

Thanks again for your idea. If you have more from where it is coming, please don’t hesitate.

Light

Crikey, that was swift! great stuff Light, will let you know if i think of anything else.

Hi Light,

One other useful thing would be to have the possibility to add paths to different scripts locations. When I develop new scripts I usually keep them on a different location on the network and only whemn they’re done I’ll get them in the max’s directory. Also would be nice to have the option to backup the scripts to a different location…

Thanks,
Anton

Hey vasilescu_anton,

Great idea. Now I will think on how I could best put it into the tool.

Thanks alot,
Light

Hey Light,

This looks cool!

All you need now is favorites (for folders and/or scripts), and as suggested before, the ability to select a different path, and there’s no more need for my scriptMan

Thanks for sharing this.

Cheers,
o

Page 2 / 7