ScriptSpot

Forum topic · Scripts Wanted

Object only visible to specific camera?

By Tim · 2011-01-04

Description

Hi,

Here's my current 3ds max 2009 problem. Don't know if a script is the best way to solve it, or if there is a better way?

I have a 3ds max scene with ten cameras.

Along with my ten cameras, I have an object that should be visible only from its specific camera.

For example, when rendering, I have the main scene, 10 objects, and 10 cameras.

I want Camera01 to see the main scene and Object01 (not Object02-10).
I want Camera02 to see the main scene and Object02 (not Object01 or Object03-10).
I want Camera03 to see the main scene and Object03 (not Object01-02 or Object 04-10).
etc...

Is there a way to accomplish this (script or otherwise)?

Thanks,
Tim

Comments (2)

br0t · 2011-01-05

I tried scripting this with custom attributes but got to some nasty problems and failed ;) Buuuut you can do this perfectly with already existing tools in Max: Use "Scene States" for your cameras in conjunction with the "Batch Render" Tool. If you hide/unhide objects, your scene states are able to store this and by that can give different views onto the scene for different cameras.

Cheers

Graph · 2011-01-04

with a preRenderFrame callback and the visibility property, sure .. but how are you switching between cameras while rendering?