Forum: Poser Python Scripting


Subject: Python for Truespace (Yes I know I'm off topic but this is only python area)

thunderdon opened this issue on Apr 23, 2002 ยท 3 posts


thunderdon posted Tue, 23 April 2002 at 12:57 PM

I am about to start a series of scenes that will contain many duplicate objects. To this end I need advise on how to do this using Python. I need to make both polar and rectangular array's. The polar ones will be for mechanically correct gears (the teeth). The script should check to see if an object is selected, prompt for one if not, ask Polar/Rectangular and for polar get center, radius and # of objects/degrees per object. Rectangular should ask Start point (Lower left) and rows/columns. Any Python mavens out there? If you know of any examples of THIS FUNCTIONALITY using Python please send link. If you can help I'll be eternally grateful and if you write it I'll be the above plus credit your script with making the scenes practical. thunderdon


bushi posted Tue, 30 April 2002 at 11:33 PM

From the sounds of it, you need to get into tkInter which is the standard Python GUI. It's built into Poser Python so it's available to do the dialog boxes and such that you'd need for a script like the one you're describing. Find this book: Python and tkInter Programming John E. Grayson Manning A great book that I'd highly recommend. It won't do anything for the Poser side of your script but it will help quite a bit in creating the user interface side.


thunderdon posted Fri, 03 May 2002 at 3:05 PM

Thanks for advise and I will check threads later. I have to sign off for 2 weeks. JUST MIGHT HAVE A GREAT JOB! Assistant instructor, Computer Technologies Dept. for a local University. The next two weeks will be full of interviews and testing. ARAGH Be careful what you wish for! Anyway they came a-courting me so I have a leg up on this one already. Let you know what happens (If you hear sobbing late at night it's ME!). Don