Guest User

Untitled

a guest
Mar 18th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. # TREE OPTIMIZER Version 0.1 BY: Brad Applebaum
  2. # 6/24/2015
  3. # A simple tool built to convert speed tree filmbox exports, to usable redshift models.
  4.  
  5. myTree = ""
  6. for i in Application.Selection:
  7. myTree = i
  8. #print (myTree)
  9.  
  10. Application.Scale("%s" %myTree, 1, 1, 1, "siAbsolute", "siPivot", "siObj", "siXYZ", "", "", "", "", "", "", "", 0, "")
  11. Application.DeleteObj("%s.polymsh.cls.User_Normal_Cluster" %myTree)
  12. for prop in xsi.ActiveProject2.ActiveScene.Root.myTree.polymsh.cls.Texture_Coordinates_AUTO:
  13. if prop != %s.polymsh.cls.Texture_Coordinates_AUTO.DiffuseUVLayer" %myTree:
  14. print prop
  15. #Application.DeleteObj("%s" %e)
  16. Application.FreezeModeling("%s" %myTree, "", "")
Add Comment
Please, Sign In to add comment