Thu, Jan 30, 4:25 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: export by python


Tekitoumen ( ) posted Thu, 04 August 2022 at 1:57 AM · edited Thu, 30 January 2025 at 8:46 AM

Hello.

I have a question about exporting from python.

I want to do import->edit model->export in python.

Exporting from python with the model open and selected in Poser succeeds.

KA5fJwANRVCzMPbpuXKez7os3wuhZCrfS88rzNug.PNG


But the following process fails.

・The model is not displayed in Poser(Poser has no model selected)

・Import the model with python

・Export this model with python

(The file is output, but it is 0 bytes in size)


If What do I need to export in python for a model imported in python?

you know how to solve this problem please let me know.


Thank you.



FVerbaas ( ) posted Thu, 04 August 2022 at 6:43 AM
Forum Coordinator



You say: 'the model is not displayed.' Did you tell Poser to do  a redraw?

Likewise, to have it selected in the UI you may have to tell the UI to select it.


Tekitoumen ( ) posted Mon, 08 August 2022 at 12:38 AM

Thank you very much.

I thought I was redrawing, but it was missing. .

sorry.



Tekitoumen ( ) posted Wed, 17 August 2022 at 12:48 AM

sorry.  I checked it and it didn't work....


After importing in python,

actor = scene.Actor("target_name")

scene. SelectActor(actor)

scene. DrawAll()

After recognizing the model like this, exporting from Python fails.

When I do the export, I get an obj file, but it's 0 bytes in size.


Since actor.Delete() succeeds, I think Poser is aware of the model.

What am I missing to recognize the model from python as well as the GUI?


Thank you.



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.