ScriptSpot is a diverse online community of artists and developers who come together to find and share scripts that empower their creativity with 3ds Max. Our users come from all parts of the world and work in everything from visual effects to gaming, architecture, students or hobbyists.
Submitted by artrender.info on Tue, 2013-05-14 09:07
I have a house in 3d and a background in it! I want to create scene states for every camera, so when I switch to any of them, I would see automatically the changes according to it's state! Any ideas?
in fact I have a multilistBox filled with cameras:
functionfn =
(
camNamesList = #()
camList = #()
i=1
while i <= cameras.count do(ifclassofcameras[i]!= Targetobject then
append camNamesList cameras[i].name
i = i+1))
rollout mycam "List Cameras"(
...
functionfn()
multilistBox mycameras "" items:camNamesList height:200 width: 200 pos:[0,0]
...
)
But I don't understand what you meant "You can store scene state name in camera's user defined settings. Then when you select camera from dd list viewport will changed to this camera and you need also simple fn to restore scene state by name"
Simply create dropdown list for all scene cameras. You can store scene state name in camera's user defined settings. Then when you select camera from dd list viewport will changed to this camera and you need also simple fn to restore scene state by name. Maybe is good to use camera name for scene state name.
Comments
Thank you, barigazy!!!
in fact I have a multilistBox filled with cameras:
But I don't understand what you meant "You can store scene state name in camera's user defined settings. Then when you select camera from dd list viewport will changed to this camera and you need also simple fn to restore scene state by name"
Simply create dropdown list
Simply create dropdown list for all scene cameras. You can store scene state name in camera's user defined settings. Then when you select camera from dd list viewport will changed to this camera and you need also simple fn to restore scene state by name. Maybe is good to use camera name for scene state name.
bga