jancory opened this issue on Feb 21, 2006 ยท 10 posts
jancory posted Tue, 21 February 2006 at 9:33 AM
is there a P5 python script to align nodes? i downloaded a P6 version but don't know how to modify it into P5 (if it can even be modified)
here's the P6 version i have:
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)
Message edited on: 02/21/2006 09:34
lost in the wilderness
Poser 13, Poser11, Win7Pro 64, now with 24GB ram
ooh! i guess i can add my new render(only) machine! Win11, I7, RTX 3060 12GB