Oh wow! that's an interesting approach with the 'case of' stuff. Yeah I notice the script that I wrote most of the time are duplicating within the script itself just because Editable Poly and Edit Poly are slightly different in maxscript. Looking at your example I will be able to do it like bellow I suppose; macroScript…
Ah! thats awesome!..I do have my GDrive local folder on both so I can map it to it instead! I should look into it further as currently I still abit blank of what is happening on your folder structure. What if you put all the macros in d folder specified on the system path? Is it because related to this sentence from the…
Whoops error on my part. I assigned the gRevel variable to Revel_Struct() but it's not visible outside those brackets. So its returning undefined. Fixed here:--global scope here... define our single global variableglobal gRevel( -- In local scope here because of our brackets. Define our struct to contain all our functions…
Revel: I would suggest going through the help file tutorials, they are good at explaining the basics of scope and local/global variables. If you want to use globals then try to give them a more personal variable name to prevent other scripts from overriding them. What if you installed another script that used xCurMod?…
That's because the start up scripts are evaluated after macroscripts as described in the link Monster provided. You should put your start up scripts in a local folder on your computer and then add that path to the Customize > Configure System Paths > 3rd party tab dialog and restart max. Your start up script will then load…
You can add macros into that directory if you would like to but be careful if your doing this for a team of artists and the folder is on a shared network. If another artist right clicks the macroscript in the customize dialog and chooses "Edit Macrosript File" they could potentially change the one on the network and not…