ScriptSpot home

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

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

Panayot Karabakalov

Yes, Marco is right

Nibbles

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.

Reply to Nibbles
Marco Brunetta

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

Panayot Karabakalov

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
Nibbles

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?

Reply to Nibbles
modjtaba

this code works if you manually set your output

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

gregory mertens

take a look at

rendTimeType

rendStart / rendEnd

and the 'render method'