Forum: Poser 12


Subject: scene.Actor("Body") Attribute Err

Tekitoumen opened this issue on Jul 12, 2022 · 5 posts


Tekitoumen posted Tue, 12 July 2022 at 7:34 PM

Hello.


I want to control the human body model provided by Poser with a Python script. (For example, changing the vertex coordinates, exporting the model, etc.)


I want to execute the following source code to select a model

actor = scene.Actor ("Body")

However, this causes an Attribute Error.


The human body model is composed of various parts.

For example, setting body parts will succeed

actor = scene.Actor ("Chest")


I want to select the whole body.

How can I solve it?


If you know, please let me know.


Thank you.



adp001 posted Wed, 13 July 2022 at 8:35 PM

Looks like you forgot to assign the poser scene to your variable "scene".

scene = poser.Scene()

After that, scene.Actor("Chest") will return an actor if one with such a name is available in your scene.

You should ask such questions in in the Python forum. Most users here do not know how to program in Poser Python.



adp001 posted Wed, 13 July 2022 at 8:52 PM

Selecting "the whole body" is not possible.

Poser figures consist of a whole set of individual parts, called "actors".

The entire geometry would be a "Uni-Mesh". Something that Poser cannot do so easily.

Here is the source code of a script that creates a unimesh from Poser figures, which can be further processed in Blender, for example, and the result used as a Poser morph.

https://adp.spdns.org/#ObjImExport

There are some other scripts that might be interesting if you want to get into Poser Python.

https://adp.spdns.org

There is also some discussion in the Python area. This one is the second part: https://www.renderosity.com/forums/threads/2955142




Tekitoumen posted Wed, 20 July 2022 at 11:31 PM

Sorry for replying late.

I found that I couldn't choose the whole body.

Also, there is no good place to ask questions about python. sorry.


I would like to confirm the information you received and consider it.

Thank you very much.


RedPhantom posted Thu, 21 July 2022 at 7:58 AM Online Now! Site Admin

Tekitoumen posted at 11:31 PM Wed, 20 July 2022 - #4441618


Also, there is no good place to ask questions about python. sorry.


I believe adp001 was talking about this forum https://www.renderosity.com/forums/12390/poser-python-scripting

 You may need to turn it on in your settings if you don't see it.


Available on Amazon for the Kindle E-Reader Monster of the North and The Shimmering Mage

Today I break my own personal record for the number of days for being alive.
Check out my store here or my free stuff here
I use Poser 13 and win 10