Forum: Poser Python Scripting


Subject: PinID, PinRight, PinLeft, ... How does it work exactly ?

semidieu opened this issue on Jan 02, 2007 · 9 posts


Naylin posted Thu, 15 February 2007 at 3:00 AM

Ok, I'll try to explain as best as I can from how I've gotten it figured out and hopefully you'll understand... First I will tell ya that I don't know what pinID is... the others work like this:

Pinning 1 & 2 deal with Left and Right
Pinning 3 & 4 with Top and Bottom
Pinning 5 is Center

In the image above (imagine that it's more perfect) there's a simple 4x4 grid.

For Text 1 (Left and Right pin)
if pinLeft="1" and pinRight="1" then the left side is at 0 and the right is at 1 (The left side starts at 0 like the normal coordinate system)
if pinLeft="1" and pinRight="2" then the left side is at 0 and the right is at -3 ( the right side starts at 0 backwards of the norm)
if pinLeft="2" and pinRight="1" then the left side is at -4 and the right is at 1
if pinLeft="2" and pinRight="2" then the left side is at -4 and the right is at -3

Is this making sense?

For Text 1 (Top and Bottom pin)
if pinTop="3" and pinBottom="3" then the Top side is at 0 and the Bottom is at 1 (again the coodinate system is normal, the top is 0)
if pinTop="3" and pinBottom="4" then the Top side is at 0 and the Bottom is at -3 (and again, backwards, the bottom is 0)
if pinTop="4" and pinBottom="3" then the Top side is at -4 and the Bottom is at 1
if pinTop="4" and pinBottom="4" then the Top side is at -4 and the Bottom is at -3

and then there's pin 5... The coordinate system starts in the dead center instead of any edge.

if all pins are set to 5 then (Still talking about text 1) Top = -2, Bottom = -1, Left = -2 Right = -1

Got it?

ok then... I'll make a little grid to show the rest of the text boxes then. On second thought, no I won't... that'd just take up too much space... If anyone doesn't understand, I'll use the others for examples as questions arise.

Oh, yeah, I forgot, you can use other combinations too... for example:
Box 5: pinLeft ="1"  pinRight="2" pinTop ="3" pinBottom ="4"
then:
Left is 1, Right is -1, Top is 1, and Bottom is -1

Hope I could help,

--Naylin

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
    My Store   My Gallery
____
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
"You have the right to remain silent. Anything you say can and will be misquoted and then used against you."