Forum: Poser - OFFICIAL


Subject: Matmatic script to add a tattoo

Fazzel opened this issue on Aug 26, 2006 · 1 posts


Fazzel posted Sat, 26 August 2006 at 9:57 PM

I've been playing around with Bagginsbill's Matmatic and Parmatic and came up with this simple script to put a tattoo on Jessi.

You'll need to supply your own tattoo.

And the proper directory path.

Make sure the background of the tattoo is white

or it won't work.

But this will let you easily scale and locate the tattoo

If you want to use it on another character, substitute that

character's texture map and directory path.

      
cx = Add(.4).labelled('PM:xloc')        # X offset parameter dial
cy = Add(.4).labelled('PM:yloc')        # y offset parameter dial
xscale = Add(.2).labelled('PM:Xscale')  # scale parameter dial
yscale = Add(.4).labelled('PM:Yscale')  # scale parameter dial

tat = ImageMap("Mystuff:Runtime:Textures:Tattoos:Chinese Dragon color.png")
tat.U_Offset = cx
tat.V_Offset = cy
tat.U_Scale = xscale
tat.V_Scale = yscale
tat.Image_Mapped = 0

clr = ImageMap("Poser 6:Runtime:Textures:Poser 6 Textures:Jessi_Body.jpg")

clr = Color_Mul(clr, tat)    # Combine the skin texture with the tattoo

s = Surface()            # Set up the Surface
s.Diffuse_Color = clr
s.Specular_Color = BLACK