Basic question

Hi everyone I am new to maxscript and was hoping you could help me out.

Could someone please outline a script that sets 3ds to render from frames 0-75 and then the command to render.

It seems like it should be basic but I can't seem to get it to work.

As a side note is it possible to script it so maxscript gets the co-ordinates of an object in my scene and then uses that as the filename for the animation.

Any help would be appreciated.

Thanks

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Graph's picture

close the render setup dialog

close the render setup dialog before setting any values used by it or they wont take.

Raphael Steves

Anubis's picture

Yes, Marco is right

Yes, Marco is right

my recent MAXScripts RSS (archive here)

Nibbles's picture

Thanks for the tip Anubis,

Thanks for the tip Anubis, although it doesn't seem to work for me.

When I use:

render rendStart=1 rendEnd=10 rendTimeType=3

I get the following error message "-- Type error: Call needs function or class, got: 10"

It seems to work when I use the following:

render rendStart =1; rendEnd =10; rendTimeType =3

I am using max6 if that makes any difference.

Marco Brunetta's picture

When setting options for

When setting options for function you need to use ":" instead of "=". Having the ; works because maxscript considers you are setting up variables.

Anubis's picture

dont use ";" - its a

dont use ";" - its a end-of-line sign, ie next should be ok:
render camera:$cam01 rendStart=1 rendEnd=10 rendTimeType=3

my recent MAXScripts RSS (archive here)

Nibbles's picture

Thanks for the help. When I

Thanks for the help. When I put in the line below it changes the settings in the render scene dialog box but it still renders only a single frame.

render camera:$cam01; rendStart =1; rendEnd =10; rendTimeType =3

What should I change?

modjtaba's picture

this code works if you

this code works if you manually set your output

loadMaxFile "e:\...\boates.max"
camera = $VRayPhysicalCamera001
rendTimeType=2
rendSaveFile=true
max quick render

mertens3d's picture

take a look

take a look at

rendTimeType

rendStart / rendEnd

and the 'render method'

modjtaba's picture

hi i have this problem to .

hi
i have this problem to . it renders JUST 1 frame
is there any solution

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.