Forum: Poser - OFFICIAL


Subject: Obj or figure out of sight question?

uncle808us opened this issue on May 29, 2010 · 8 posts


jonnybode posted Sun, 30 May 2010 at 2:13 AM

Hi!

/quote
If it has been moved  you can reset the dials for x,z, translate.
for figures check BODY and HIP translations.
/end quote

If it has been moved and its initial values on X, Y and Z are zero, so yes,but ive had props that loads with a value of for example xTran -2.7634 and the only way to centre the object (in workspace) is to insert a positive value of the same number (+2.7634).

uncle808us:

its right there in the thread, copy the below block of text into notepad:

actor= poser.Scene().CurrentActor()
actor.ParameterByCode(poser.kParmCodeXTRAN).SetValue(0)
actor.ParameterByCode(poser.kParmCodeYTRAN).SetValue(0)
actor.ParameterByCode(poser.kParmCodeZTRAN).SetValue(0)
x,y,z= actor.Origin()
if(x!=0):actor.ParameterByCode(poser.kParmCodeXTRAN).SetValue(-x)
if(y!=0):actor.ParameterByCode(poser.kParmCodeYTRAN).SetValue(-y)
if(z!=0):actor.ParameterByCode(poser.kParmCodeZTRAN).SetValue(-z)
poser.Scene().DrawAll()

Name the textfile to something like fixprop and change the fileextension to py
Just remember that a very kind member of the name Dennis Haroldsen created it :-)