Cycle Cameras

11 votes
Date Updated: 
04/02/1999

Cycle through all cameras in a scene.

Version Requirement: 
3
Video URL: 

Comments

Comment viewing options

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

Replace

Replace this Lines :

	for i = 1 to cameras_array.count do 
		(
		if cameras_array[i] == current_cam then next_camera_index = (i+1)   
		)
 
		if next_camera_index > cameras_array.count then
		(
		new_cam = cameras_array[1]
		)

with this :

	for i = 1 to cameras_array.count do 
		(
		if cameras_array[i] == current_cam then next_camera_index = (i-1)   
		)
 
		if next_camera_index == 0 then
		(
		new_cam = cameras_array[cameras_array.count]
		)
looy1's picture

Inverse Script

Hi, same problem here, can't get the script working to cycle the other way. Any advice?
Thanks!

titane357's picture

I have no luck.... :-((

I have no luck.... :-((

lalamax3d's picture

rather then typing -1 ,

rather then typing -1 , replace "(i+1)" by "cameras_array -1" in line 34 and it should work. goodluck

titane357's picture

pleaz, that must be easy for

pleaz, that must be easy for a master of maxscript !!! :-)

titane357's picture

Hello That is a really handy

Hello

That is a really handy script !! thanks....

I wanted to do Inverse : but when I invert loop :
"for i = cameras_array.count to 1 by -1 do "
I get an error.
Anybody can help ?

Comment viewing options

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