kotisded Posted April 18, 2013 Share Posted April 18, 2013 Hej, zauważyłem ostatnio, że max przekłamuje wartości np. przy unwrapowaniu, jak chce się peelować, albo flattenować obiekt, po modyfikacji. Przekłamania zdarzają się też przy eksporcie. Do tej pory robiłem to ręcznie. Skrypt resetuje x_forma, transformacje, skale i centruje pivoty do zaznaczenia, przy tym odpina- zapamiętuje i na końcu przypina z powrotem całą hierarhie, parrenty i dzieci. Dummisy jeśli są w hierarchii, niestety wracają do swojej poprzedniej wielkości. macroScript Reset_everything_in_selection category: "kotisded.Service" toolTip:"Reset_everything_in_selection" icon:#("MergeAnim", 2) ( fn ResetEverything = ( for o in selection do ( parent = o.parent; o.parent = undefined; allChildren = #() for child in o.children do ( append allChildren child child.parent = undefined; ) resetxform o; ResetTransform o; ResetScale o; o.pivot = o.center; maxOps.CollapseNodeTo o 1 off; --macros.run "Modifier Stack" "Convert_to_poly"; --maxOps.CollapseNode o; o.parent = parent; for child in allChildren do ( child.parent = o; ) ) ) ResetEverything() ) 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