Wed, Mar 4, 7:51 PM CST

Renderosity Forums / Poser Python Scripting



Welcome to the Poser Python Scripting Forum

Forum Moderators: Lobo3433, Staff Forum Coordinators: Anim8dtoon

Poser Python Scripting F.A.Q (Last Updated: 2026 Jan 04 1:47 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: Has anyone seen a "visible in camera" script?


Keith ( ) posted Sun, 04 November 2012 at 8:47 PM · edited Fri, 20 February 2026 at 6:02 AM

With the option to make something invisible to the camera (and raytracing) in later versions of Poser, there's no need to toggle the visibility of a bodypart to take care of poke-through, which makes it easier to select body parts to pose. Has anyone created a script that can toggle those options on and off for bodyparts?



PhilC ( ) posted Mon, 05 November 2012 at 6:27 AM

The Python method for a designated actor is:

actor.SetVisibleInCamera(0)

Any script will need some form of user input to select which actors it should operate on.

My questions would be:-

How many body parts do you need to set?

Will it be quicker to run such a script, (assuming that you can remember where you stored it), or just use the options in the Poser properties panel?


grichter ( ) posted Mon, 05 November 2012 at 7:24 AM

If you find yourself hidiing the same body parts a lot, like the shoulders under a long sleeve shirt (elbow poke thru), then create a pose file and drop it in your favorites folder so you know where it is and can access it from any runtime quickly and easily.

The pose file would look like this

{
version
    {
    number 4
    }
actor BODY
    {
    }
actor rForeArm
    {
    off
    }    
actor lForeArm
    {
    off
    }        
}

Create a second pz2 and change off to on and you have a make the body parts visibale again pose file.

The only commercial script I have seen do something similar to what you are requesting is Power Locks for locking and unlocking various body parts (where you select from a body actors lists). You can find it here...

http://www.runtimedna.com/Power-Locks.html.

Might be able to convince Netherworks to modify and create Power Hide

Gary

"Those who lose themselves in a passion lose less than those who lose their passion"


Dizzi ( ) posted Mon, 05 November 2012 at 12:31 PM

I've created a script which allows to select and pose multiple actors, it also has an option to check/uncheck visibility (for Poser 8 and later):  http://neocron.webspaceforme.net/alforum/index.php?topic=1511.msg2447#msg2447

 



Keith ( ) posted Mon, 05 November 2012 at 1:38 PM

Quote - The Python method for a designated actor is:

actor.SetVisibleInCamera(0)

Any script will need some form of user input to select which actors it should operate on.

My questions would be:-

How many body parts do you need to set?

Will it be quicker to run such a script, (assuming that you can remember where you stored it), or just use the options in the Poser properties panel?

Ideally it would have a dialogue box allowing checking and unchecking of bodyparts, which would negate the need to go through the properties panel for each one.

Right now I'm going through the panels for each bodypart I want hidden from the render, which inevitably means I forget one, and of course that's the one poking through or invisible when I need it visible, which of course I don't notice unless I watch the IDL calculations.



Keith ( ) posted Mon, 05 November 2012 at 1:41 PM

Quote - If you find yourself hidiing the same body parts a lot, like the shoulders under a long sleeve shirt (elbow poke thru), then create a pose file and drop it in your favorites folder so you know where it is and can access it from any runtime quickly and easily.

There's lots of poses for simple visibility out there already (which is not what I want): Xurge includes a set for his armour, for instance.



markschum ( ) posted Mon, 05 November 2012 at 1:54 PM

heirarchy editor. Alt-click I think to set all sub-parts too.


Keith ( ) posted Mon, 05 November 2012 at 5:24 PM

I don't want something to turn on and off visibility, I was looking for something that can turn on/off raytracing and/or visible in camera while still leaving the bodypart visible.

I repeat, there are a lot of options out there to handle visibility, both in terms of scripts and poses, but I haven't seen any that toggle the visible in camera option.



Dizzi ( ) posted Mon, 05 November 2012 at 6:00 PM

Well, how's "Visible", "Visible in Raytrace", "Visible in Render" from the link I posted above? 



grichter ( ) posted Tue, 06 November 2012 at 12:23 AM

Quote - I don't want something to turn on and off visibility, I was looking for something that can turn on/off raytracing and/or visible in camera while still leaving the bodypart visible.

I repeat, there are a lot of options out there to handle visibility, both in terms of scripts and poses, but I haven't seen any that toggle the visible in camera option.

If you don't include turn off cast shadows you will see the shadows cast by the body part you are turning visiable in camera off on. You have to turn off all three. Which I could see as a pain in the but to accomplish body part by body part and making sure you clicked all three

If it is the same body parts over and over then besides dizzi's script just change what I posted to this.

 

I think you have several options to pick from and just choose which one is best based on your needs.

{
version
    {
    number 4
    }
actor BODY
    {
    }
actor abdomen
    {
    castsShadow        0
    visibleInReflections 0
    visibleInCamera 0
    }        
}

Gary

"Those who lose themselves in a passion lose less than those who lose their passion"


Keith ( ) posted Tue, 06 November 2012 at 1:07 PM

Quote - If you don't include turn off cast shadows you will see the shadows cast by the body part you are turning visiable in camera off on. You have to turn off all three.

 

Not if you used raytraced shadows (as I do). Then you only need to turn of the raytracing and the camera options.



Dimension3D ( ) posted Fri, 16 November 2012 at 6:26 PM

With Poser Python (or a pose), you can even turn on/off visible in render, which is not accessible from the Properties tab. This keeps the actor visible in preview, but completely ignores it in renders.

My script XO (available here in the store) can be used amongst others to toggle all kinds of visibility states for one or several actors.


Dimension 3D - Poser Tools, Poser Props and Morphs, Cinema 4D Plugins, and more

Renderosity Store / D3D Web Site


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.