Thank you for the tip. This is a very bad design if you'd ask me ! ^^ I tried to replace the "then" by a "do", and also add an "else" block but it didn't change anything. Hopefully I finally managed to make it work. It seems that's because I had to include the functions inside the macroscript declaration, but outside the…
Just post an MZP. I have time to look. What I do, and I think it might be the right way (SpaceFrog can correct me), use your Install.ms to move MyFunctions.ms to a Plugins folder (not a script or macro folder) and put MyUI.mcr in $UserMacros. Then fileIn the function. Finally, fileIn the Macro. This evals the scripts for…
Thank you for the reply monster ! I sent you the mzp file if you still have some time to look into it. Actually I wanted to keep the files out of the Plugins folder (like stdplugs/stdscripts/...). But this might be the only valid place even if there's a userScript folder. I wanted to know why it was like that, and how the…
Hi to everyone ! I'm currently trying to create a self installing maxscript file but no matter what I try I feel like it's a never-ending story. Here's what I currently have: 1 maxscript file containing the functions 1 macroscript file containing the UI when I evaluate the maxscript file and the macroscript file,…
Thanks PolyHertz, yes you're right ! I didn't pay attention enough when writing this ! I only put this as an example since the actual script is very large I thought it would be best suited for understanding. Do you know what may cause this strange behavior anyway ?
I can't say for sure without seeing the actual script (and I'm not sure what you'd call 'very large', I personally try to keep files at 2k lines or less before breaking them up, but I know others that are ok with 15k+ lines of code in a single maxscript file). One tip I can give is to use "do" instead of "then" in your…