Forum: Poser Python Scripting


Subject: creaseAngle Method?

karibousboutique opened this issue on Feb 28, 2009 · 14 posts


karibousboutique posted Sun, 01 March 2009 at 9:40 AM

Quote - Cool you are apparently putting my Python manual to good use :)

However if you open temp.pz2 in a text editor you'll see where you are not quite right yet.

Change line 23 to:-
for actor in figure.Actors():

and in line 29 change currentActorName to actor.InternalName()

Hope that helps.

Thank you for the help!!  And yes, the manual is a HUGE help! (You should go to lulu.com and offer it for sale in a bound version.  I've got mine printed in a binder, but a bound hardcover would be awesome!)

The currentActorName is a variable that I defined earlier with actor.InternalName.  (See line 9)

currentActorName = scene.CurrentActor().InternalName()

(I figured out the need for the internal name the hard way -- when the script ran but didn't change anything, LOL!)  And you're right about the end bracket. I'll fix that.

As for line 23...   So, the "for actor in figure.Actors()" can replace the counter I set up?  (Am I in the right spot?  I edit in notepad, so no line numbers!) Cool.

Thanks for your help!!

Intel Core i7-8700 6-Core 3.2 GHz (4.6 GHz Turbo), 32GB RAM, two GeForce GTX 1080 Ti GPUs

DS 4.10, Photoshop CC and CS6, Poser 11 Pro, Vue 2016, CarraraPro 64bit, Autodesk Inventor, Mudbox, and 3DS Max

One in 68 children is diagnosed with autism.  One is mine.