ScriptSpot

Forum topic · Scripts Wanted

multiple cameras previews

By titane357 · 2009-08-19

Description

hello
Perhaps it is very easy for every body but :
- I have different cameras
- Each camera can have different FOVs and key ranges

I want to create a camera to preview the camera switching without "previewing" (make an .avi = viewport preview)

I search a lot on the web and don't find anything (that works on 2010)....

Anybody ?

Comments (4)

noel_d3 · 2011-03-24

Great script !

It would be nice that the range of cameras are taken automatically in the name of cameras if you use a form like : cameraname [##;##]

Anubis · 2011-03-17

Hi Titane,
I suspect you need more customizable tool
but here is something anyway (using Max "Make Preview")

camsArray = for c in Cameras where \
	not isKindOf c TargetObject collect c
prvName = (getDir #preview) + "\\_scene.avi"
for cam in camsArray do
(
	viewport.setCamera cam
	redrawViews()
	createPreview()
	newName = (getDir #preview) + "\\" + cam.name + ".avi"
	copyFile prvName newName
)

titane357 · 2009-08-22

:-(