Questions tagged [maxscript]

MAXScript is the built-in scripting language in Autodesk 3ds MAX. It can be used to automate repetitive tasks as well as develop new tools and user interfaces.

MAXScript is the built-in scripting language in Autodesk 3ds MAX. It can be used to automate repetitive tasks as well as develop new tools and user interfaces.

300 questions
0
votes
1 answer

Pass by value / reference performance comparison in Maxscript?

How does it affect efficiency in Maxscript?. Maxscript is a slow one, but i wonder how much does it affect? I tried this script, it took a lot of time to execute the operations in the array, but later on the call to functions were fast returning 0…
Darkgaze
  • 2,280
  • 6
  • 36
  • 59
0
votes
1 answer

3dsmax: How to use cmd to simulate Drag and Drop mxs from explorer to 3dsMax?

I'm hoping to find an easier way to "send" maxscripts into max from outside max to update frame ranges and a few other items. I've written a floater for most of our main mxs tools, but wanted to have some extra flexibility for the scripts that we…
0
votes
1 answer

Why i can not define two def by clicked?

I'm trying to do the Project follow some guy on forum, but when i use clicked function to link the first def with the second def, my purpose is how can i link 2 def each other, and the second def can understand the function in first def. This is my…
Minh Tuan Nguyen
  • 137
  • 2
  • 2
  • 11
0
votes
1 answer

Get mesh of instanced GeomObject

How can I get the mesh from an instanced GeomObject? In maxscript I do: gsphere = createInstance geosphere radius:1 segs:4 gsphere_mesh = gsphere.mesh Here is the first line of the maxscript translated into C++: GeomObject *GSphere =…
user3417614
  • 131
  • 2
  • 7
0
votes
1 answer

How to make many picture size for one file render?

I'm trying to make the Max Script can render 1 file 3Ds max to 3 or more file picture size. But i try many ways, and dont have any code can help me to do that . This is my code : macroScript vrayStudioSetup category:"Multi Images"…
Minh Tuan Nguyen
  • 137
  • 2
  • 2
  • 11
0
votes
2 answers

MAXscript Listener can not run Pyside

Please help me ! I'm creating GUI by Python can run on the 3Ds Max, i heard someone said i have to use Pyside to make it. And everthing be fine until now. This is my code : import sys from PySide import QtGui from PySide.QtGui import * from…
Minh Tuan Nguyen
  • 137
  • 2
  • 2
  • 11
0
votes
1 answer

Select Polys by material maxscript

-- this function selects polygons assigned to mat and assigns a matid of count -- mat is the mat to select the polys by and count is the mat id to assign to the polys function assignMatId mat count = ( -- set the mat into…
Chris Sprance
  • 302
  • 2
  • 12
0
votes
2 answers

Find missing coordinate in normalized vector

Say I have a normalized vector but I don't know what the z coordinate is. How can I retrieve the normalized z coordinate while preserving the existing x and y coordinates. For example: X: -0.361 Y: 0.361 Z: ? The length of just x and y is…
user3417614
  • 131
  • 2
  • 7
0
votes
1 answer

Maxscript, can any one explain this script to me (be very clear)

--Lego brick wall shift = true for z in 0 to 9 do ( shift = not shift; -- why colon? for x = 0 to 9 do (copy $Lego).pos = if shift then [40*x,0,20*z] else[20+ 40*x,0,20*z] )
Vamshi
  • 1
  • 2
0
votes
2 answers

Run Python on MaxScripts

I want to run Python on 3Dsmax 2014. I saw the website and know 3Dsmax 2014 can use the Python script . But when I try with example from the website, it does not work. Maybe lack of some software or anything else. I used this code in "MAXscript…
Minh Tuan Nguyen
  • 137
  • 2
  • 2
  • 11
0
votes
1 answer

How do you export indices for Json geometry

I wrote a script in MaxScript that succesfully exports the vertex positions of my mesh. The vertices are sorted following 3dsMax index order. How am I supposed to write the indices so that a webgl application can read the correct order and build…
Muteking
  • 1,465
  • 5
  • 18
  • 31
0
votes
1 answer

Exporting to Json geometry format for Three.js

I'm trying to write an exporter in Maxscript, to JSON format, to parse in Three.js. I've found very little documentation. But about this: https://github.com/mrdoob/three.js/wiki/JSON-Geometry-format-4 Do I have to use BufferGeometry or geometry?…
Muteking
  • 1,465
  • 5
  • 18
  • 31
0
votes
2 answers

How add text in specified position to already existing file

I try to add text to a specified position to already existing file. When i run my code new text added at the end file and not in the specified position. what did i do wrong? fs=openFile "c:/my.txt" mode:"a+" skipToString fs ";" seek fs (filepos…
0
votes
1 answer

3d Max, maxScript. Set vertex position

How to set vertex position in 3d Max in maxScript? $.selectedVerts.pos.x = 10 - not working
user1528799
  • 463
  • 1
  • 8
  • 18
0
votes
3 answers

Maxscript Spinner

I am a newbie to Maxscript, I am wondering if there is a way to change the value of the range of a spinner? spinner ScrollToFrame "Select Frame" type:#integer range:[startFrame, totalFrames, 0] fn getFrameInfo = ( totalFrames =…
Djmann1013
  • 67
  • 1
  • 11