Jump to content

help with the slice modifier.


craigball
 Share

Recommended Posts

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...