Missing: <script name>

Hi. This one drives me nuts. After making a plugin, along with a macroscript, after Max restarts, the button is greyed out and its name is changed to "Missing: MyScrip". It seems that every time Max is restarted it forgets that I installed this script.

Here's the macroscript:

macroScript MyScript
 	category:"FT"
 	toolTip:"This script cures cancer!"
	buttonText:"Press Me"
 
(
	on execute do
	filein   @"$scripts\FT\MyScript.ms"
)

The other stuff: the macroscript is in "...enu\UI\usermacros" while the script itself is in "...Scripts\FT". I did once fixed that, my other script works, but I just can't replicate / remember what I did.

Any ideas?

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Anubis's picture

$syntax is for zip-packs

The syntax $scripts is for Zip-file script packages (used inside "mzp.run" file).
Use GetDir #scripts, i.e.:

on execute do fileIn (GetDir #scripts + @"\FT\MyScript.ms")

my recent MAXScripts RSS (archive here)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.