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

maxscript get class properties at onece

I have a problem in getting all properties of material from scene or material editor. v = meditMaterials[1] showProperties v But this only shows me what properties has VrayMtl class (in my case). Is there a way to get all the properties of the…
0
votes
2 answers

Maxscript trying to change material id of each object

I am using 3D Max Design which is odd with material ids. I am trying to revert all objects with name starting with Prism back to an id number of 10. I thought this would have been a bit straight forward however I am really new at Maxscript. My…
0
votes
1 answer

maxscript how to detect collision and write to text

First up I am a newbie on Maxscript. I have seen script for collision detection for specific objects I also want to write to a txt file the objects that are For example all objects with the name "Prism*" that collide with Cylinder001 I want to…
0
votes
1 answer

MaxScript create a a lot of files

The script creates a lot of files in a loop After starting the 3D max script can only create 499 files. Then displays the error "Runtime Error". Can I change this limit?
Ni55aN
  • 196
  • 1
  • 12
0
votes
3 answers

Maxscript Scripted Modifier

I have been trying to create a scripted modifier. All works fine. The only thing is I want to display the current Z position of the object in the modifier. This will require me to update the modifier everytime the object updates. Can someone please…
Videep Mishraa
  • 169
  • 2
  • 8
0
votes
2 answers

Store multidimensional array in modifier with MaxScript

Is there a way to store a multidimensional array as a parameter of a simplemod modifier created with MaxScript? I can't find a way in the maxscript help.
0
votes
1 answer

Update image in RAMPlayer

I can put two images into RAMPlayer; ( file1 = "C:\\rendered\\moose.jpg" file2 = "C:\\rendered\\squirrel.jpg" RAMPlayer file1 file2 ) but I don't know how to reference the open RAMPlayer window and pass in a (newly updated/rendered)…
Ghoul Fool
  • 6,249
  • 10
  • 67
  • 125
0
votes
1 answer

Maxscript renders saving blank/empty file

I am having trouble saving renders to an output file (using Maxscript). I use the following code in my script: `render camera:$VRayCam002 frame:1 outputfile:"testscript.tif"` When I run the code, I can see the scene render in the frame buffer,…
0
votes
1 answer

accessing paticleIndex of generated pf source

when creating a PF Source node in a scene I can select this system in maxscript and iterate through all the particles using a for loop and pf.particleIndex However, when I use maxscript to loop through the geometry in a scene and generate a PF…
deificx
  • 38
  • 5
0
votes
1 answer

Import rotation from file MaxScript

How I can import rotation from file? I need Quaternions Currently I can only import object location. Structure of txt file: x,y,z,xrot,yrot,zrot,wrot,nameofobject Here is my script: ( file = memStreamMgr.openFile @"C:\test.txt" while NOT…
nmzik
  • 141
  • 1
  • 1
  • 9
0
votes
1 answer

Deleting #allKeys but first 2 in 3DS Max 2010 with MAXScript

I have been using this simple MAXScript to clear an animation on 3DS Max 2010: deleteKeys objects #allKeys Is there a simple way like this to delete all the keyframes but keeping the first 2?
petercra
  • 55
  • 2
0
votes
1 answer

Maxscript access to full Object Offset Transformation (non uniform scale)

I'm currently trying to transform some object's pivot by some arbitrary matrix. So far I've been able to do it for objects without any non-uniform scales applied, but it breaks when the target object has some non-uniform scales. I have the…
rotoglup
  • 5,223
  • 25
  • 37
0
votes
2 answers

max script attach copied geometry

I've run into a frustrating problem with some max script I'm writing and was hoping someone might know why my code isn't working. I've had success in my same script with other geometry and attach: fn base = ( base_geo = convertToPoly(Plane…
user1245706
  • 151
  • 2
  • 2
  • 13
0
votes
1 answer

3dsmax: Simulate Material Drag and Drop

I'm trying to find out what kind of format 3dsmax uses for material drag and drop. I tried to inspect the mime-type and data by dropping Materials from max into a pyQt window, but it didn't receive any drops from max.
BoshWash
  • 5,320
  • 4
  • 30
  • 50
0
votes
2 answers

Rebuild morph targets in Maxscript

Am I right in thinking that WM3_MC_Rebuild reloads a morph target (on it's specified channel)? In which case, why doesn't the following seem to have the desired effect? for i = 1 to 12 do ( WM3_MC_Rebuild myObj.morpher i )
Ghoul Fool
  • 6,249
  • 10
  • 67
  • 125
1 2 3
19
20