Forum: Poser Python Scripting


Subject: Script help

Uncanny_Film opened this issue on Aug 21, 2023 ยท 4 posts


HartyBart posted Tue, 22 August 2023 at 1:21 PM

Here's a 'most simple' script to zero the rotations on the currently selected/active prop or figure, which may be of use.


# Zero the rotation of the currently selected prop or figure in Poser. Works in P11 or P12.

import poser

scene = poser.Scene()

actor = scene.CurrentActor()

actor.ParameterByCode(poser.kParmCodeXROT).SetValue(0.0)

actor.ParameterByCode(poser.kParmCodeYROT).SetValue(0.0)

actor.ParameterByCode(poser.kParmCodeZROT).SetValue(0.0)

# Redraw the OpenGL Preview viewport in Poser, so we can see what's been done.
scene.DrawAll()




Learn the Secrets of Poser 11 and Line-art Filters.