uncle808us opened this issue on May 29, 2010 · 8 posts
uncle808us posted Sat, 29 May 2010 at 1:21 PM
If your obj or figure is out of sight of the camera is there a way to get it to the center of the view screen? Poser 7 Mac.
MacBook Pro OSX El Capitan Ver 10.11.6
jonnybode posted Sat, 29 May 2010 at 2:27 PM
Hi!
Dennis Haroldsen kindly shared a nice python script some years ago when I hade the same problem, it works on props but i havent tried it on characters.
Read this thread and the post by Dennis:
markschum posted Sat, 29 May 2010 at 5:25 PM
If it has been moved you can reset the dials for x,z, translate.
for figures check BODY and HIP translations.
uncle808us posted Sat, 29 May 2010 at 5:30 PM
Thanks How do you get that script?
MacBook Pro OSX El Capitan Ver 10.11.6
SamTherapy posted Sat, 29 May 2010 at 6:38 PM
You can parent the model in question to the camera of your choice. You'll never lose sight of it then. Unless your "Yon" setting is wrong, but that's another story.
Coppula eam se non posit acceptera jocularum.
pakled posted Sat, 29 May 2010 at 10:51 PM
there's actually a 'yon' setting?...;) but then, what do I know?
I wish I'd said that.. The Staircase Wit
anahl nathrak uth vas betude doth yel dyenvey..;)
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 :-)
uncle808us posted Sun, 30 May 2010 at 9:47 AM
Got it Thanks to everyone.
MacBook Pro OSX El Capitan Ver 10.11.6