Notifications
Clear all
[Closed] encryptScript and MacroScripts
Mar 12, 2009 8:14 pm
I’ve written some scripts and encrypted them with the encryptScript method.
One of the scripts contain some macroScript-sections like this
macroScript mnuEditObject category:"Test" tooltip:"Edit Selected Object"
(
on execute do
(
createDialog rollEditObject width:400 height:400
)
)
All other scripts work fine, but when I try to load and execute the encrypted mse-script that contains these macroScript-sections, 3ds Max displays the following error message:
[img] http://img210.imageshack.us/img210/7499/errort.png [/img]
Of course loading and executing the original .mcr-file works fine.
I get the same behaviour when I copy and paste the code from the mcr-file into one of the ms-files.
Unfortunately I have not yet fully understood what's exactly the difference between mcr-files and ms-files.
But could it be that the encryptScript method does not work with macroScripts? Or has someone an idea for the cause of this problem?
thx
M.
2 Replies
Mar 12, 2009 8:14 pm
from what I can remember encryptscript does not work with macros but a workaround is to save them main portion of your script to a seperate encrypted script file and then use filein with your macroscript.
1 Reply