Mon, Nov 25, 10:06 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 Sep 18 2:50 am)

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: How to make a geometry object?


Anthony Appleyard ( ) posted Sun, 22 July 2018 at 12:14 AM · edited Thu, 18 July 2024 at 9:51 PM

The Poser 11 Python manual says:-

Geometry Methods
AddGeneralMesh
Explanation Add a general mesh to existing geometry.
 Arguments are numerical Python arrays specifying polygons, sets, and vertices, as well as optionally texturepolygons, texture-sets, and texture-vertices.
Arguments Required:
• Polygons: Enter the Numerical array specifying the polygonal connectivity of the sets.  Each polygon stores the starting set index and the number of vertices it contains.
• Sets: Enter the Numerical array containing the IDs of the vertices.  Each ID is an integer corresponding to the position of the vertex in the vertex array.
• Vertices: Enter the Numerical array containing the actual positions of the vertices.  Each vertex has an X, Y, and Z component. Optional: • Texture Polygons: Enter the Numerical array specifying the polygonal connectivity of the texture-sets.  Each polygon stores the starting set index and the number of vertices it contains.
• Texture Sets: Enter the Numerical array containing the IDs of the texture vertices. Each ID is an integer corresponding to the position of the vertex in the vertex array.
• Texture Vertices: Enter the Numerical array containing the actual positions of the texture vertices.  Each vertex has an X, Y, and Z component.
Syntax <NoneType> AddGeneralMesh(<IntType nx2 Numeric.Array> polygons, <IntType nx1 Numeric.Array> sets, <FloatType nx3 Numeric.Array> vertices, {<IntType nx2 Numeric.Array> texPolygons, <IntType nx1 Numeric.Array> texSets, <FloatType nx3 Numeric.Array> texVertices}) 

Example See sample scripts.

But where are these "sample scripts"?

Descriptions of some other Poser 11 Python methods also end in merely "Example See sample scripts.".


Cage ( ) posted Tue, 24 July 2018 at 4:09 PM

Do you still have access to Poser 5 or 6? IIRC, the geometry scripts went unchanged after their initial release. Poser Python has been sadly neglected for a long time.

===========================sigline======================================================

Cage can be an opinionated jerk who posts without thinking.  He apologizes for this.  He's honestly not trying to be a turkeyhead.

Cage had some freebies, compatible with Poser 11 and below.  His Python scripts were saved at archive.org, along with the rest of the Morphography site, where they were hosted.


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.