Forum Moderators: Staff
Poser Python Scripting F.A.Q (Last Updated: 2024 Apr 26 1:10 pm)
same as bob - i use the following
import poser
scene = poser.Scene()
fig = scene.CurrentFigure()
parts = fig.Actors()
for part in parts:
if part.IsBodyPart():
for Parm in part.Parameters():
if Parm.InternalName() == part.ParameterByCode(poser.kParmCodeXROT).InternalName():
Parm.SetValue(0.0)
if Parm.InternalName() == part.ParameterByCode(poser.kParmCodeYROT).InternalName():
Parm.SetValue(0.0)
if Parm.InternalName() == part.ParameterByCode(poser.kParmCodeZROT).InternalName():
Parm.SetValue(0.0)
if Parm.InternalName() == part.ParameterByCode(poser.kParmCodeXTRAN).InternalName():
Parm.SetValue(0.0)
if Parm.InternalName() == part.ParameterByCode(poser.kParmCodeYTRAN).InternalName():
Parm.SetValue(0.0)
if Parm.InternalName() == part.ParameterByCode(poser.kParmCodeZTRAN).InternalName():
Parm.SetValue(0.0)
scene.DrawAll()
Locked Out
Hello EnglishBob and Structure,
Thank you for your feedback. Just to put you in context, I need the "zero rotation method" to implant a way for finding the global scaling of actors (Smooth as welll as propagating) using the World Matrix method. I will release soon tutorials and related Python scripts about Poser Matrix methods. Now, I am waiting Smith Micro response about an issue with the WorldMatrix method. If no response, I will upload the tutorials and script in the next week with a note about the issue.
Structure: Can I have your permission to insert the code in a script testing the global scaling of actor with the World Matrix method? I will give full credit to your work. The script will be included with the other scripts related to Matrixmethod.
Allstereo
Locked Out
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.
Hello all,
After checking in the Poser Python manual and the Renderosity forums, I didn't see a method to put all rotations to zero as this can be done in the Joint Editor. Perharps there is another way to do that.
Any comment on this matter are welcome
Allstereo