Beginners question

Beginners question

Anonymous
Not applicable
888 Views
8 Replies
Message 1 of 9

Beginners question

Anonymous
Not applicable

Hi.

 

I have been given a script to load a set of OBJ files into Max.  The instruction is to put the script in my start up folder (Program Files/Autodesk/3DS Max Design 2015/Scripts/Start up) and then it should be available from either the MaxScript dropdown or the Utilities menu.

 

I can browse, find the script and open it but nothing happens when I try "Run script".  On the Utilities tab/ MAXScript tab in the Utilities dropdown there is only one script available (Convert to mr Area Light).  I thought that if I found where that script was I could try putting my new script in the same folder but I have done a search of my machine for this script file name to see what folder it is in but nothing comes up?

 

There are several other scripts in my start up folder but none of them are listed as available in Utilities.

 

Am I missing something obvious?  Could someone please advise.

 

Thanks,

 

Terry

0 Likes
Accepted solutions (1)
889 Views
8 Replies
Replies (8)
Message 2 of 9

Laurent.Pallares
Alumni
Alumni

Hi Terry,

 

Here are some useful link one how to use the max script from 3ds Max:

 

Link to the help in different releases

 

Script Installation in 3ds Max

 

In addition, I would say that running the script from 3ds, previously as directly use it in the startup could avoid some 3ds Max running issue.

 

When do you select run, you will be able to schearch for the (*.ms), or test if it work from the The MAXScript Debugger option.

 

The script format are (*.ms, *.mse, *.mcr, *.mzp, *.ds)

----------------------
Autodesk logo

Laurent Pallarès
Product Support Specialist
Autodesk, Inc.


-------------------
If my post answers your question, please mark it as an Accepted Solution, so that others can find answers quickly!
0 Likes
Message 3 of 9

Anonymous
Not applicable

Thanks Laurent.

 

This has not really made anything clearer.

 

I read through the two links and according to the background on Max scripts there are four types of script and .ms (which I am trying to run) is just run from the MaxScript dropdown (by selecting Run script) or Utilities/Run script.  In both instances nothing happens.

 

"When do you select run, you will be able to schearch for the (*.ms), or test if it work from the The MAXScript Debugger option.".  When I select Run I can search for the script but when I select it nothing happens (I would expect that when it runs it asks me for the location of the OBJ sequence that I am trying to load).

 

I have tried going back in to re-read your links and I now keep getting a list of errors "Warning: User 'scriptsp_ssadmin' has exceeded the 'max_questions' resource (current value: 720000)"

 

Thanks,

 

Terry

0 Likes
Message 4 of 9

Anonymous
Not applicable

To elaborate on this:

 

This is what it says in the maxscript help:

 

To load a script:

If you want to study a script before running it, open it first:

  1. In the MAXScript rollout, click the Open Script button.

  2. Select the script you want to study and click Open.

    The Script Editor window opens. It shows the text of the script you selected. You can now read the commands and see if you get an understanding of what the script might do when you run it.

 

To run a script:

  1. In the MAXScript rollout, click the Run Script button.The Choose Editor File dialog appears.

  2. Select the script file you want to run, and click Open.MAXScript immediately carries out the commands that are contained in the script file.

 

As it says in the help, I can open the script and view it to see the contents.  This is not a problem.

 

The issue is that point 2 (MAXScript immediately carries out the commands that are contained in the script file).  This does not happen.

 

Hope this is clearer.

 

Many thanks,

 

Terry

0 Likes
Message 5 of 9

Anonymous
Not applicable

Also:

 

In the Maxscript help it says:

 

To run a scripted utility (single3ds Max session):

  1. Go to the Utilities panel, open MAXScript Utility, press Run Script... (Alternatively, go to main menu, MAXScript, Run Script...)
  2. Locate and select the .ms script source file and press Open. The name of the utility will appear in the "Utilities" drop-down list.
  3. Select the name of the Utility from the list - the scripted utility will open in the Utilities panel.
    NOTE:Next time you start 3ds Max, the Utility will NOT be loaded. You will have to repeat the above steps or use the method below:

 

 

Again, this does not happen (The name of the utility will appear in the "Utilities" drop-down list.)

 

Many thanks,

 

Terry

0 Likes
Message 6 of 9

Laurent.Pallares
Alumni
Alumni

Hi Terry,

 

Could you share the (*.ms) script, so we can help you one, at least to understand why it doesn't work.

 

Best regards,

----------------------
Autodesk logo

Laurent Pallarès
Product Support Specialist
Autodesk, Inc.


-------------------
If my post answers your question, please mark it as an Accepted Solution, so that others can find answers quickly!
0 Likes
Message 7 of 9

Anonymous
Not applicable

Hi Laurent.

 

I have sent a private message.

 

Thanks,

 

Terry

0 Likes
Message 8 of 9

Anonymous
Not applicable

terry, you just want to view the script without executing it? You can do that by opening it in the mxs editor.

 

To execute the script from the editor, you either press CTRL-E (to execute all of it) or highlight a portion of the script you want to run and press CTRL-ENTER

 

The only way the script will auto-execute is if you drop it into the work area. If you just open maxscript editor and open your script, it will not execute.

0 Likes
Message 9 of 9

Anonymous
Not applicable
Accepted solution

Thanks Dave.

 

I got the script running thanks.  It was the Maxscript memory that was stopping it.

 

Cheers,

 

Terry

0 Likes