Tagged 'General Scripting'

MaxScript render ignores Vray settings.

Hi there all! I'm new in MaxScript, I have a little problem.

I created a little code to change text to text shape and render a short animation. It works but ignore my Vray setting, why? This is the code:

(
c = "ABC";
for i = 1 to c.count do
(
	$textshape.text = c[i];
	frames = interval 0f 20f;
	render outputfile:(c[i]+"-.png") framerange: frames vfb:off progressbar:on;
)
)

What I should put? Thanks!

Create Vertex in the center of the Edge

A few questions. How to create Vertex in the center of the Edge, using Maxscript? And is it possible to do this, but stay in the vertex mode, not switching to edge mode? For example, if the edge is longer than other edges, add a vertex to it, but stay in vertex mode.

Trying to figure out how to access some extended material parameters - need help please.

Bear with me - I literally started Max scripting yesterday so I'm relatively proud to have gotten as far as I have but now I'm stuck.
I'm trying to dump a bunch of values from an old Kuju material plugin (for the Railworks game) into a file to make it easier for me to migrate the materials to the latest version of Max with the game's latest plugin.
I've managed to grab some of the extended values - those that showed up when I queried the materials using getPropNames, but that's only 8 of the values out of a possible 50 or so and I'm not sure how to get the others.

Move random UV

Hi,

I would like to move randomly selected faces in unwrap modifier.

I can move ALL selected faces randomly :
$.modifiers[#unwrap_uvw].unwrap2.MoveSelected [ (random -10 10 )as integer, (random -10 10 )as integer ,0]

But I can't manage to make a loop, so each face would have a different value.

Can somebody help ?

Thanks

Help with Parametric Hexagon Array: Type Error: Call needs function or class, got: 6

I'm currently working through a book called, Parametric Design for Architecture, and can't get one of the tutorial projects im doing to work. I think I need to adjust my order of operations, but am to noob to know which process's should come first for the rollout, any help is appreciated.

My Error:

 

--------------------------- MAXScript Rollout Handler Exception ---------------------------

-- Type error: Call needs function or class, got: 6

--------------------------- OK ---------------------------

 

My Script:

Technical difference between maxscripts with and without macro header

Hi! I have a problem I'm more and more experiencing. I have some scripts (for example the speedtree fbx importer) which I can throw in 3ds Max and they work. If I make them a macro, they work in the beginning, but after some time the macro buttons don't do nothing anymore. How can this happen? I mean the macro should only be a button to execute the script and nothing more? I also have a filesaver script which is always working when I throw it in 3ds Max. When I make it a macro it works in the beginning.

Custom menu to eg MaxScript Window and others?

Is it possible to add a custom menu to a interface window like MaxScript Editor window, Material Editor window and such?

Selecting a group of vertex from an array

Hi there

I have made an array holding a group of vertex (the vertex number)

Now I would like to use the same array to select these vertex, but how do I do that?

Regards
- David

Help with QuadrifyAll Script from Barigazy

Hello folks

I don`t understand too much about maxscripting, only the very, very basics.

I was wondering how could i edit this script to make it work on a selection of multiple objects (not only in one):

http://www.scriptspot.com/3ds-max/scripts/quadrifyall

Can anyone help me?

What is the command for Scale Uniform / Non-Unifrom and Squash?

Hello

When I turn on the Listener, it prints max scale no matter which of the three scaling modes I pick; Scale Uniform / Non-Unifrom and Squash.

How can I pick either of them through maxscript?

Syndicate content