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.
hello , i am newbie in maxscript , I want to crreate a simple script , i have many cameras in scenes , for each camera i want hide some objs , how can i code it ? thank you for your help , sorry my bad english
but if you want to do new simple script - do u want to hide/unhide objects with changing cameras or only during render time ?
if during render time only:
I would start with adding custom attribute to camera with list of nodes to hide
Thank use callbacks or prerender/postrender scripts to hide/unhide those objects
Hide/unhide when changing camera is more tricky, but yuo can try with callbacks too (Viewport Redraw Callback + check if active camera - getActiveCamera())or just create rollout to switch cameras together with hiding/unhiding objects
Let me know which direction u want to go. Than I can help you with more details.
Comments
thank you for your help
:D
`
Hi,
Did you try to use existing scripts:
Batch Camera Render
http://www.scriptspot.com/3ds-max/scripts/batch-camera-render
Prism
http://www.scriptspot.com/3ds-max/scripts/prism
LPM
http://www.scriptspot.com/3ds-max/scripts/l-pass-manager
but if you want to do new simple script - do u want to hide/unhide objects with changing cameras or only during render time ?
if during render time only:
I would start with adding custom attribute to camera with list of nodes to hide
Thank use callbacks or prerender/postrender scripts to hide/unhide those objects
Hide/unhide when changing camera is more tricky, but yuo can try with callbacks too (Viewport Redraw Callback + check if active camera - getActiveCamera())or just create rollout to switch cameras together with hiding/unhiding objects
Let me know which direction u want to go. Than I can help you with more details.
Cheers,
Pixamoon