Sat, Dec 28, 6:08 AM 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: set a figure not visible to the camera


maur_2005 ( ) posted Wed, 16 March 2022 at 8:26 PM · edited Tue, 10 December 2024 at 5:31 AM

Hi folks, is it possible to set a figure not visible to the camera from a python script?


structure ( ) posted Thu, 17 March 2022 at 12:09 AM · edited Thu, 17 March 2022 at 7:56 AM
Forum Coordinator

the only way I know of is to set all of the figure's actors invisible to the camera : 

the following script works fine - you may want to specify which figure though. 

import poser
scene = poser.Scene()
figure = scene.CurrentFigure()
for actor in figure.Actors():
    actor.SetVisibleInCamera(0)
scene.DrawAll()

of course you could always just use
figure.SetVisible(0)
Which would hide the figure in both the render and preview.


Locked Out


maur_2005 ( ) posted Thu, 17 March 2022 at 12:57 PM

Thanks Structure, that was useful


EVargas ( ) posted Sun, 20 March 2022 at 9:49 PM · edited Sun, 20 March 2022 at 9:51 PM

Is there a way to set a keyframe for visibility via python? In the GUI we can click the "key" icon on the parameters tab to set a key for it.

I mean something like this (just wondering):

actor.SetVisibleInCamera(0).AddKeyFrame()


EVargas.Art


structure ( ) posted Mon, 21 March 2022 at 8:22 AM · edited Wed, 30 March 2022 at 12:05 PM
Forum Coordinator

There likely is a way, I am not sure at this time but I will look into it when I get a chance.


**Edit:

I have thus far been unable to find out how to do this. 

Locked Out


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.