Array on a spline with some randomisation

 From:  Michael Gibson
5416.51 In reply to 5416.50 
Hi Mike, so it looks like you've got 2 problems there, first your keyboard shortcut says: "script: Randomize" - you need it to say just plain "Randomize" instead, without any script: prefix.

If you put script: in front of the text for the Command part of a shortcut key, it will run the text immediately following it as direct JavaScript code, which will result in the syntax error that you noticed.

To run an installed command file, you have to put just the name of the file (without .js extension) in the shortcut key, that will make it look up the file in the commands folder.

Then the second problem is that the Randomize.js and Randomize.htm files are not directly inside the first level of the commands folder, you've got them nested down an additional level in a Randomize folder. Go into that Randomize folder and move the files up one level in the folder hierarchy so they are directly inside the commands folder instead of nested down in a sub-folder.

Once you tune up those 2 things you should then be set up. If you need a reminder for future reference, FAQ #1 has instructions for this and I've added a little bit to that to help clarify.

Hopefully you'll be able to get all set up now!

- Michael