try to execute the code. the code automatically defines the macro. you can go to Customize User Interface... and in category HelloWorld find "Hello World" macros. Make a button, try to press it... but try to restart the max...

... now you see that button works.
the question is where is really our macros placed? the answer is simple. in the user's macroscripts directory.
and it load before our structure, but our structure successfully redefine it on startup. (remember this fact. you will use it later).

our button works as toggle. how is about to make works as ON/OFF (if dialog open it's checked, if not - not checked)

You lost me long ago Denis, I can see what you're doing it and why, but I've got a setup here where all our scripts are in a central repository as script files not macros. Then we have an interface which allows you to quickly make a button on the toolbar which just fires a fileIn to the needed script file.

I'm finding the centralised database a much better system as I can update and edit scripts and everyone has the latest version.

You lost me long ago Denis, I can see what you're doing it and why, but I've got a setup here where all our scripts are in a central repository as script files not macros. Then we have an interface which allows you to quickly make a button on the toolbar which just fires a fileIn to the needed script file.

i don't want to say that macros in structures is only right way to organize tool distribution.
i just want to show how to do it.

Quote:

Originally Posted by DaveWortley

I'm finding the centralised database a much better system as I can update and edit scripts and everyone has the latest version.

the centralised database is what i have. the user just has to add my root directory as a 3-rd Party Path to get everything (plugins, dll, scripts, startup, icons, etc.) automatically loaded with max. and of course user can place the root directory anywhere he wants.

Follow Us On:

The CGSociety

The CGSociety is the most respected and accessible global organization for creative digital artists. The CGS supports artists at every level by offering a range of services to connect, inform, educate and promote digital artists worldwide. More about us on TheArtSociety.com