Fri, Dec 13, 9:02 PM CST

Renderosity Forums / Poser Python Scripting



Welcome to the Poser Python Scripting Forum

Forum Moderators: Staff

Poser Python Scripting F.A.Q (Last Updated: 2024 Dec 02 3:16 pm)

We now have a ProPack Section in the Poser FreeStuff.
Check out the new Poser Python Wish List thread. If you have an idea for a script, jot it down and maybe someone can write it. If you're looking to write a script, check out this thread for useful suggestions.

Also, check out the official Python site for interpreters, sample code, applications, cool links and debuggers. This is THE central site for Python.

You can now attach text files to your posts to pass around scripts. Just attach the script as a txt file like you would a jpg or gif. Since the forum will use a random name for the file in the link, you should give instructions on what the file name should be and where to install it. Its a good idea to usually put that info right in the script file as well.

Checkout the Renderosity MarketPlace - Your source for digital art content!



Subject: ActorByInternalName('rShin:1').Children() does not work


fbunse ( ) posted Thu, 14 January 2010 at 5:04 PM · edited Fri, 13 December 2024 at 6:01 AM

Hello all,

my scene has an actor 'rShin:1' which (suprise) has a 'rFeet:1' attached. But trying to find its child per script returns nothing.

print "Child rThigh: %s" % poser.Scene().ActorByInternalName('rThigh:1').Children()[0].InternalName()
-> rShin:1

print "rFoot: %s" % poser.Scene().ActorByInternalName('rFoot:1').InternalName()
-> rFoot:1

print "Child rShin: %s" % poser.Scene().ActorByInternalName('rShin:1').Children()[0].InternalName()
-> undef

This has been tested with Poser 8.0.2.10911.

Can anyone confirm if this is a bug in Poser or my script. And if so, what am I missing?

Thanks in advance 


Dizzi ( ) posted Thu, 14 January 2010 at 5:27 PM · edited Thu, 14 January 2010 at 5:27 PM

poser.Scene().ActorByInternalName('name:x') does not get the actor with the internal name 'name:x' but any actor which's internal name starts with 'name:'. You probably didn't get the actor you thought.



PhilC ( ) posted Thu, 14 January 2010 at 5:28 PM · edited Thu, 14 January 2010 at 5:30 PM

Try turning off the IK chain for the right leg. With IK on the foot's parent is the BODY.

When I ran the script with IK on I got a list index out of range error. With IK's off it correctly printed out that the child of the right shin is the right foot.


fbunse ( ) posted Thu, 14 January 2010 at 5:39 PM

Hi Phil,

yepp, thats it! With IK disabled I am getting proper results as well. IK definately was the last thing I thought about beeing the cause.

Thank you bunches!

Btw. thanks to your book I'm almost done scripting my own bvh-exporter eventhough beeing a complete Poser and Python rookie. So I guess your book is not that bad! :)


PhilC ( ) posted Thu, 14 January 2010 at 5:45 PM

Way to go :)


Privacy Notice

This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.