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
9
votes
2 answers

call maxscript from another maxscript

I'm trying to write a function that calls an external script but am not having any luck with the syntax scripts_folder = "C:\\Program Files\\Autodesk\\3ds Max 2008\\Scripts" var script1 = "hello_world.ms" -- use function to call…
Ghoul Fool
  • 6,249
  • 10
  • 67
  • 125
7
votes
3 answers

A QApplication instance already exists

I'm doing some simple PySide on 3Dsmax 2015. This is my error: python.ExecuteFile "C:\Program Files\Autodesk\3ds Max 2015\scripts\Python\demoUniTest.py" -- Runtime error: Line 32 () A QApplication…
Minh Tuan Nguyen
  • 137
  • 2
  • 2
  • 11
7
votes
1 answer

Smart Indenting of brackets (parenthesis) in sublime text 2

I've got a pretty sweet setup for editing and running maxscript from inside sublime text 2. The one thing I've been wanting recently is to emulate or copy the behaviour of the curly brackets with the normal round brackets EDIT: Sorry - Chrome…
finlaybob
  • 697
  • 10
  • 30
6
votes
6 answers

Should I parse git status or use gitsharp?

I'd like to integrate git into production pipeline to stage 3dsmax files. While it is alright to work with git through TortoiseGit, I'd like to communicate with it from the Maxscript to add custom menu commands to 3dsmax. Should I parse git status…
sergo
  • 183
  • 1
  • 4
  • 9
4
votes
5 answers

Delete all animation Keys using MAXScript in 3ds Max globally

I am trying to use MAXScript to delete all animation Keys from my scene using MAXScript. At the moment I am using the mouse and pressing CTRL + A to select all objects thus bringing up the keys for all objects in my scene. I am then selecting all…
Chendy
  • 175
  • 1
  • 2
  • 6
4
votes
2 answers

Get the z-Buffer in 16 bit resolution in 3ds max

I read out the z-Buffer from an image like the following: --get z buffer in HD resolution rbmpHD = render outputsize:[1920,1080] channels:#(#zdepth) vfb:off camera: z_cam z_dHD = getchannelasmask rbmp #zdepth outputfile:z_name…
Kev1n91
  • 3,553
  • 8
  • 46
  • 96
4
votes
4 answers

How can I save single renders incrementally with max script

While I am modeling I like to render a frame to show the progress as I am going along. I would like to program the renderer to save the render as a render output and add an incremental number to the end of it. So I would have a number of renders at…
Donovan
  • 41
  • 1
  • 2
4
votes
4 answers

How to programatically assign random colors to objects in 3ds max?

How to programatically assign random colors to objects in 3ds max?
relima
  • 3,462
  • 5
  • 34
  • 53
4
votes
1 answer

How do I change the FOV of the 3dsmax perspective window programmatically through Maxscript?

I need to access the FOV property of the Perspective viewport. This is not the same as the FOV property associated with target and free cameras. To access the FOV property non-programmatically, right click on the viewport name (top left of each…
Michael Labbé
  • 12,017
  • 4
  • 27
  • 36
4
votes
2 answers

Denormalize vector

How can I denormalize a vector that has been normalized to get the original values prior to normalizing? For example: vec = [-0.5, -1.0, 0.0] vec_length = sqrt(vec.x^2 + vec.y^2 + vec.z^2) vec_normalized = [vec.x/vec_length, vec.y/vec_length,…
user3417614
  • 131
  • 2
  • 7
3
votes
1 answer

How to rotate/mirror a 3d animation?

I currently have a FBX animation model of a biped moving slightly forward (positive Z axis), turning around 180 degrees, and starting to run in the opposite direction (negative Z axis). However, I would like to completely mirror such animation, in…
htaunay
  • 73
  • 1
  • 2
  • 9
3
votes
1 answer

Maxscript Python addModifier

I'm writing maxscript in python and the following code throws a type error: import MaxPlus res = MaxPlus.Core.GetRootNode() #This is just as example that I use the first child. child = MaxPlus.INode.GetChild(res,0) morpherFP =…
Reoku
  • 51
  • 5
3
votes
2 answers

Get bone ID from its name or from the index on skin list in MaxScript

I have an bone name (e.g. Bone002) and I want to get the bone ID for it (not the index in skin list, but the ID that is required e.g. in skinOps.SetVertexWeights). I know that reverse operation looks like this: skinMod =…
PolGraphic
  • 3,233
  • 11
  • 51
  • 108
3
votes
0 answers

Import material libraries via Maxscript without creating a new temp library

This is a question one of my colleagues asked a while ago on CG Society and never got an answer, so I thought I'd try asking here. He has since left the company and I have inherited this project: I'm working on a project that involves taking a large…
KDhyne
  • 126
  • 1
  • 1
  • 14
3
votes
2 answers

How do I access materials in maxscript without material editor?

There appear to be two options to access materials in maxscript, through the compact Material Editor and the Slate material editor. The problems is that a scrip that attempts to access/modify materials via the compact editor (currentMaterialLibrary…
Wolfgang Haak
  • 33
  • 1
  • 1
  • 5
1
2 3
19 20