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
3
votes
0 answers

maxscript slider, read value

I have two sliders and I need use his value in Rendering... Definition: slider maximum "xxxx" orient:#horizontal type:#integer range:[0,10,10] slider minimum "xxxx" orient:#horizontal type:#integer range:[0,10,0] Use: myanim = render…
2
votes
1 answer

Give each object in scene a unique wirecolor?

Know of any scripts, or code, to do this? I've seen several which gives random colors, but I need to make sure no two objects have the same wirecolor.. Thanks! =)
Stian Berg Larsen
  • 543
  • 2
  • 10
  • 29
2
votes
4 answers

How can I get MaxScript to retrieve data from a .txt file for naming exported objects?

I need to put some code in a MaxScript that will take data from parts of a .txt (or maybe CSV) file and use it to name exported objects etc. So far iv'e only been using listener to work out scripts and so this is beyond me right now. Any help…
Adam
  • 59
  • 8
2
votes
0 answers

Aligning object to face normal with local rotation MaxScript

My script aligns object to face like this: But i need to get this: there is a code i used: faces = (polyOp.getFaceSelection $Box001) as array face = faces[1] theMatrix = matrixFromNormal(polyOp.getFaceNormal $Box001 face) theMatrix.row4 =…
2
votes
1 answer

calculate total angle between selected faces

I have a framework for selecting holes in objects. Right now it works by manually clicking inside the hole (with “by angle” option on), it then selects the inside of the hole. I then delete the faces, select “open edge” then cap it. This is what my…
IAmNoone
  • 1,011
  • 1
  • 8
  • 25
2
votes
3 answers

How to compile for older 3dsmax versions with 2010 \ 2011 sdk?

I'm working on a plugin, and previously I saw that I could compile for several older versions of 3dsmax with just 2010 sdk installed. The new project I've got works now with 32\64 max 2011 and 2010 (since they are compatible), but how do I compile…
IAmNoone
  • 1,011
  • 1
  • 8
  • 25
2
votes
1 answer

3dsmax.exe command line switches

Is there an exhaustive list of commandline switched for the 3dsmax.exe. I'm particularly interested in the -server and -pipe switch as I want to reroute some 3dsmax argument calls. Basicly I have a stand-in 3dsmax.exe, that reroutes all info to the…
JHN
  • 1,018
  • 9
  • 12
2
votes
1 answer

Recalculate normal on editable poly object

I'm working on a exporter, but the problem I'm stuck at is the normal calculation. I've been reading many posts about this, and it seems like the "getnormal" function does not work like intended. (this is the one creating wrong results for my…
IAmNoone
  • 1,011
  • 1
  • 8
  • 25
2
votes
1 answer

Creating a tube of variable width

I'm struggling to write a script in 3ds Max to create a tube with weight changing along it. As input I have points, which this tube should pass, also orientation and width at those points. This tube is supposed to be a visualization of something,…
2
votes
1 answer

MaxScript: Detecting When An Object Is Deleted

How would I detect (or fire a function) if an object is deleted from the scene?
Jacob
  • 69
  • 14
2
votes
1 answer

Custom Turbosmooth Modifier Plugin not updating the mesh

Nice to be here in Stackoverflow in the first time:) I would like to ask your helps, because i can't find any solution and documentation about my problem:( I want to make a script for myself, with i can add instanced custom turbosmooth modifier for…
Sanislov
  • 23
  • 4
2
votes
2 answers

dynamic UI element in maxscript

Can anyone show a way to make dynamic UI elements in maxscript? For example. I can insert a image button in the ui, but i'd like to control the scale of the image based on the value of a slider element.
R.P. da Costa
  • 109
  • 1
  • 15
2
votes
3 answers

Maxscript function forward declaration

I'm having the age old problem of Maxscripts not working the first time they are run (from a cold start) because the functions need to be declared before they are used. The following script will fail the FIRST time it is run: fOne() function fOne =…
Ghoul Fool
  • 6,249
  • 10
  • 67
  • 125
2
votes
1 answer

Maxscript syntax highlights for Sublime?

I know there currently isn't a Maxscript syntax definition for SublimeText2, but is it possible to easily either convert an existing syntax set from say Notepad++ or Textpad or create one (more of a daunting prospect as I wouldn't know where to…
Ghoul Fool
  • 6,249
  • 10
  • 67
  • 125
1
vote
2 answers

Remove unused materials from 3DS-Max meshes

I have a fairly large 3DS scene with many individual meshes - a couple of thousand. Each mesh should be using a single material only, i.e. all triangles in that mesh use the same material assigned to the mesh. This seems to be case, but we have many…
Mr. Boy
  • 60,845
  • 93
  • 320
  • 589
1
2
3
19 20