import poser def align(mat): scene = poser.Scene() tree = mat.ShaderTree() root = tree.Node(0) for node in tree.Nodes(): if (node == root): continue (x,y) = node.Location() node.SetLocation((x-x%220)+11, y) tree.UpdatePreview() mats = poser.Scene().WacroMaterials() if (mats == None): poser.DialogSimple.MessageBox( "Please select a material first.") else: for mat in mats: align(mat)