Notifications
Clear all

[Closed] problem with macroscritps

Hi,

Yesterday I and a day before I was experiencing a strange thing, but I was pretty sure I was just tired and maybe I didn’t save the file. But today I’m completely sure there is something weird going on…

I’m writing my own pipeline tools recently. The whole Idea is that the pipeline should be dropbox-based. So all the macroscripts are beeing kept on the dropbox.

I have three files within “\3ds Max 2014\stdplugs\stdscripts” that I need to run on startup. Just a bunch of functions I need for the pipeline and a file to point to some local disc txt file that is pointing to a dropbox folder.

For now I’m testing this on my own computer only so I keep all the macroscripts in some drobox folder, however I do not make this folder any external path for the plugins.

So how do I make them to work? just a simple save and run “ctrl+e” is enough. Function files are updated by copying to “\3ds Max 2014\stdplugs\stdscripts” and max restart.

So what I have experianced is, that two hours ago I fixed the code for my Asset Manager and everyhing was going well. I saved the macro and run it.

Than I run another instance of max to check if it was working. It seamed to be doing well but now it started to erroring out. I looked into the code and to my surprise it was the old un-fixed version of the tool. Not even todays fix, but it yesterdays fix…

I mean… the file was saved, there is no option for it to change anyhow, right?

Am I missing something here? Maybe 3dsMax keeps the scripts in the memory and has the right to rewrite them? I mean thats the only explenation I can find.

This is not the single time it happened. I can forget to save a file ones or twice, but this happed too many times already this week. Maybe my way of workign with maxscript is completely wrong

5 Replies

Okey I just find out that macros are beeing really write in into “C:\Users\UserName\AppData\Local\Autodesk\3dsMax\20 15 – 64bit\ENU\usermacros”

So I guess this explains something. But what it actually means? That I should save my macros there (keep macros on dropbox as copies), close all max instances and restart max?

What is the proper way of working with macros in max?

max always stores copies of all run macroscripts in usermacros directory (or any other directory that specified as ‘usermacros’).
it has to do it to keep all actions and macros connected to macro buttons or menu actions.
unfortunately it can be only one path for all marcoscripts.

well… if you have your own macroscripts and you want to store them in your own place you have to run these macros every time the system loads your stuff.

you can do it by putting a ‘launcher’ in one of the auto-loaded directories.

2 Replies
(@juzwa)
Joined: 1 year ago

Posts: 0

what do you mean by “launcher”? Do u mean include the directory “Customize… > Configure Paths… > Plug-Ins”

(@denist)
Joined: 1 year ago

Posts: 0

no…

i mean if you put some your script in startup directory it will be executed on system loading. the script might be:

for mcr in getfiles (<yourdirectory> + "*.mcr") do filein mcr

it will load all your macros when a stdplugins were already loaded.

Oh… thank you