Notifications
Clear all

[Closed] Macroscripts copy themselves to User dir

Why do my macroscripts copy themselves to:


C:\Users\George\AppData\Local\Autodesk\3dsMaxDesign\2011 - 64bit\enu\UI\usermacros

It then means I have them in two places – I don’t want that! Can I prevent it?

3 Replies
1 Reply
(@pjanssen)
Joined: 10 months ago

Posts: 0

Yes, don’t keep them in that other place
Installing a macroscript should be done by evaluating it from a temporary source or script (thus creating a copy in the usermacros dir).

there is a setting in the installsettings.ini where you can set

useUserProfiles=0

however, there is a case to say that generally letting scripts access the program files directory is bad practise given how win7 wants everyone to use user profiles and max is automating the copying of macros to userscripts.

Hi,
There is no way to bypass this, expects closing (red ‘X’) the dialog box informing about the macro being copied to the userscript folder that shows up.
This happens when you edit macroscripts that reside in the MAXROOT/UI/macroscripts folder.
They get copied to the usercripts folder, as soon as one of them errors, or if you choose to edit one of them (preferences dialog and right click ‘edit’ for shortcuts or toolbars items)

The MAXROOT/UI/macroscripts folder is parsed FIRST and macroscripts in the usermacros folder are evaluadted AFTER the macros in the userscripts folder, thus overwriting the same one previoulsly evaluated the MAXROOT/UI/macroscripts.

note:
useUserProfiles=0
has no influence about his behaviour: it just adds a ‘usermacros’ folder in the UI folder of MAXROOT folder, instead of the %USER%… folder