Forum Moderators: Staff
Poser Python Scripting F.A.Q (Last Updated: 2024 Sep 18 2:50 am)
Attached Link: http://www.poseworks.com/serendipity/index.php?/categories/4-PzrXml
The documentation for posework's "pzrXml 2.0" library is the only explaination of the various attributes that I know of.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."
I wanted to add, that if pinned like the last example, the entire grid would be:
Left=0, Right=0, Top=0, Bottom=0
And if all pins are set to 1 then the entire grid is:
Left=0, Right=4, Top=0, Bottom=4
Oh, and the only real reason to use any other pinning other than all 1's is if your dialog is going to be resizeable, that way you can basically define what side things are stuck to when resizing. Of course, using pinning 5 for left and right is handy too to make sure that something is centered if you use the tag: staticWidth="1"
--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."
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.
When creating an xml file (or editing existing one), you have those tags:
pinID="2" pinTop="3" pinLeft="1" pinBottom="3" pinRight="1"
Can someone explain me exactly what does those numbers ? I tried to edit the faceroom.xml file to create a greater preview (200 pixels wider and higher), but I can't move the two buttons: "Random Face" and "Reset Face".
I edited the top, bottom, right, left and also the rect.top, rect.bottom, rect.right, rect.left values. I could ungroup those two buttons and move them individually, but I would like to keep the "group" assembled.
I guess the problem comes from the PinID, pinTop, ... values. But each time I change one of those values, the buttons simply disappears...