ScriptSpot

Forum topic · General Scripting

Basic question

By Nibbles · 2009-07-30

Description

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 (9)

Graph · 2011-05-12

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

Anubis · 2009-08-03

Yes, Marco is right

Nibbles · 2009-08-03

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 · 2009-08-03

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

dont use ";" - its a

Anubis · 2009-08-02

dont use ";" - its a end-of-line sign, ie next should be ok:

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

Nibbles · 2009-08-02

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 · 2011-05-12

this code works if you manually set your output

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

mertens3d · 2009-07-31

take a look at

rendTimeType

rendStart / rendEnd

and the 'render method'

modjtaba · 2011-05-12

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