craigball Posted March 18, 2009 Share Posted March 18, 2009 hi i wanted to slice my building in 2 to render a section so i selected all and slaped a slice mod on it. now evey object has a slice mod onit is there a way of removing them off all the objects at once? Link to comment Share on other sites More sharing options...
anton Posted March 19, 2009 Share Posted March 19, 2009 Here is a script that iterates through all the objects in the max scene and if it finds an object that has a slice modifier it will delete it: for o in objects do --iterates through all the objects in scene ( if o.modifiers.count != 0 do --if the object has modifiers ( for m = o.modifiers.count to 1 by -1 do --iterates backwards through the stack to allow deletion ( if classof o.modifiers[m] == SliceModifier do deletemodifier o m --if it finds a slice modifier it will delete it ) ) ) Make sure you have a backup copy of the scene before you run the script. I've tested it on a few objects with multiple modifiers on it and it run perfectly. Link to comment Share on other sites More sharing options...
craigball Posted March 26, 2009 Author Share Posted March 26, 2009 cool where do you put the code??? Link to comment Share on other sites More sharing options...
SandmanNinja Posted March 27, 2009 Share Posted March 27, 2009 in a text file and then load it into a user button or quad menu or right-click menu. you can also copy the text into your copy/paste buffer and then edit a new macro and then paste it in there. Link to comment Share on other sites More sharing options...
csd Posted April 4, 2009 Share Posted April 4, 2009 You don't necessarily have to slice everything, you can simply use camera clipping. Set the distance of the clipping planes and everything outside of the clipping planes with be invisible. Link to comment Share on other sites More sharing options...
craigball Posted April 4, 2009 Author Share Posted April 4, 2009 You don't necessarily have to slice everything, you can simply use camera clipping. Set the distance of the clipping planes and everything outside of the clipping planes with be invisible. Really thats cool dose it work with vray physicle cameas? do you know of any good tutorils for doing it? thaks for that Link to comment Share on other sites More sharing options...
csd Posted April 4, 2009 Share Posted April 4, 2009 yea, it works with the v-ray physical camera, it's in the miscellaneous parameters. Here's a link to a page about the v-ray camera. http://www.spot3d.com/vray/help/150R1/vrayphysicalcamera_params.htm Just check the clipping box and specify the near and far clipping range. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now