dennisharoldsen opened this issue on May 15, 2007 · 7 posts
dennisharoldsen posted Tue, 15 May 2007 at 2:34 PM
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.
#------------------------------------------------------------
#------------------------------------------------------------
import poser
scene = poser.Scene()
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
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
PhilC posted Tue, 15 May 2007 at 2:51 PM
Rotoscoper has that and a number of other posing options.
svdl posted Tue, 15 May 2007 at 3:07 PM
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
dennisharoldsen posted Tue, 15 May 2007 at 4:43 PM
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.
dennisharoldsen posted Tue, 15 May 2007 at 4:50 PM
thank you.
your code is quicker and more reliable.
however, the result is still varied.
i am sending my test results as a jpg.
it shows an initial pose that is changed and changed again.
i am trying to understand poserpython but it is a challenge.
you know that better than i do.
jonnybode posted Fri, 18 May 2007 at 12:51 PM
Hi Dennis!
Excuse me if this is a silly question, when I swap a pose i go to "Figure/Symmetry/Swap right and left", I guess you are after something more?
Im just curoius what the result of your script shall be?
Regards / Jonny
jonnybode posted Sat, 30 June 2007 at 3:48 AM
.