Forum Moderators: Staff
Poser Python Scripting F.A.Q (Last Updated: 2024 Sep 18 2:50 am)
I've rewritten the script to swap all figures, independent of Poser language and body part names. See attached file. Save as SwapFigure.py.
The pen is mightier than the sword. But if you literally want to have some impact, use a typewriter
PhilC
thank you.
i have done lots of research to understand poserpython.
you are one of the few who does.
Rotoscoper sounds very capable and i going to check it out.
i am looking at learning more about poserpython.
it is dramatically under-doucumented.
is the python code in Rotoscoper visible?
maybe we can talk.
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.
thanks for the previous crucial help from nruddock and PhilC.
it would be nice to have a script to reverse the pose of a character.
i got the idea from the folowing script.
this is a script i downloaded.
sometimes it works but the result is not always what i expect.
i can send images to show this.
#------------------------------------------------------------
Swaptotal.py
Flip the symmetry of the whole figure with one button push.
Copyright (c) 2005 David G. Drumright (ockham)
#------------------------------------------------------------
import poser
scene = poser.Scene()
#-----------------------------------------------------------------------------
In currently selected figure, swap right and left.
#-----------------------------------------------------------------------------
try:
TheFigure = scene.CurrentFigure()
except:
exit
#-----------------------------------------------------------------------------
scene.SetFrame(0)
TheFigure.SwapTop()
TheFigure.SwapBottom()
MidlineList = ["BODY","Neck","Upper Neck","Head","Chest","Abdomen","Hip","Left Eye","Right Eye"]
for Name in MidlineList:
try:
OneActor = TheFigure.Actor(Name)
except:
pass
try:
TwistParm = OneActor.ParameterByCode(poser.kParmCodeYROT)
TwistParm.SetValue(-TwistParm.Value())
except:
pass
try:
SideParm = OneActor.ParameterByCode(poser.kParmCodeZROT)
SideParm.SetValue(-SideParm.Value())
except:
pass