Wed, Dec 25, 7:24 AM CST

Renderosity Forums / Poser - OFFICIAL



Welcome to the Poser - OFFICIAL Forum

Forum Coordinators: RedPhantom

Poser - OFFICIAL F.A.Q (Last Updated: 2024 Dec 23 7:38 pm)



Subject: Obj or figure out of sight question?


uncle808us ( ) posted Sat, 29 May 2010 at 1:21 PM · edited Fri, 08 November 2024 at 8:55 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:

http://www.renderosity.com/mod/forumpro/showthread.php?message_id=3230561&ebot_calc_page#message_3230561



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.

My Store

My Gallery


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


Privacy Notice

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.