
Once upon a time, a little mermaid put on her legs and a little black flexi skirt to visit some friends...

At her friend's house, she sat on a pretty little chair and...
*Eeeek* What happened to my skirt?
Unfortunately, this is a common problem with flexi skirts (and other prim attachments). Some attachments work well in one position (like when you are standing), and look funny in other positions (like when you are sitting or walking).

Wouldnt it be nice if the flexi skirt can adjust itself when you are in different positions?
Well, you can! Thanks to Carricre Wind and Virrginia Tombola's wonderful AttachmentSet :)
AttachmentSet Overview
AttachmentSet is a script that will adjust a prim attachment's position/rotation, depending what the avatar is doing. You can have different positions/rotations for standing, sitting, ground sit, walking, and running.
AttachmentSet is simple to use. And best of all, its FREE! :)
You can pick up the free AttachmentSet script at Sirena Hair & Fashion (Search/Places for "sirena", the SLURL is West Sunset (160,50,22)).
My longtime friend Virrginia Tombola has written an excellent and detailed AttachmentSet Tutorial on her blog. She has tips on how to deal with lag when using AttachmentSet. She goes into stuff thats way over my head :P
If you find AttachmentSet useful, be sure you drop Carricre Wind and Virrginia Tombola a note to thank them for creating such a wonderful and Free tool! :)
A Little Black Dress with AttachmentSet
Virrginia's Tutorial covers AttachmentSet in detail.

So Im going to show you how to create a little black dress that uses AttachmentSet. It's a step-by-step tutorial, but it will not go into details on how AttachmentSet works.
You will need both the AttachmentSet script and Ged Larsen's LoopRez to complete this tutorial. You can pick them both up for free from Sirena Hair & Fashion (Search/Places for "sirena", the SLURL is West Sunset (160,50,22)). You can find the free "Ged Larsen's LoopRez Generator" package in the Tutorial Supplies area under the giant mermaid sign.
If you have never created a flexi skirt using Ged Larsen's LoopRez, you should try the Flexi Prim Skirt tutorial first before doing this tutorial. You will need to know how to generate a flexi skirt with a specific skirt panel.

First, the top: Right-click on your avatar and select "Appearance...". Select the "Shirt" tab. If you are already wearing a shirt, select the "Take Off" button.
Click the "Create New Shirt" button.
Click on the square above "Color/Tint". Select the Black square.
Enter the follow settings:
Sleeve Length: 27
Shirt Bottom: 100
Collar Front: 78
Collar Back: 78
Shirt Fit: 0
Shirt Looseness: 0
Shirt Wrinkles: 0
Click the "Save As" button and enter "Tutorial Shirt" as the Name.
(Optionally, you could use the top from the Creating Clothes with GIMP or Creating Clothes with Photoshop tutorials.)

Next are the "Glitch Pants". These pants provide the background for the flexi skirts (and provide some...umm...essential coverage :P).
In the Appearance window, select the "Pants" tab. If you are already wearing pants, select the "Take Off" button.
Click the "Create New Pants" button.
Click on the square above "Color/Tint". Select the Black square.
Enter the follow settings:
Pants Length: 20
Waist Height: 100
Pants Fit: 0
Cuff Flare: 0
Pants Crotch: 0
Pants Wrinkles: 0
Click the "Save As" button and enter "Tutorial Pants" as the Name.
Flexi Skirt for AttachmentSet
Now comes the fun part: we will make a flexi skirt designed for AttachmentSet :)

You can use just about any flexi skirt with AttachmentSet. But since the skirt is rotated upward when you sit down, the skirt panels tend to open up. If the skirt panels are narrow, they will leave a large gap...
We need to create a flexi skirt with wider and more curved (less Path Cut) panels.

Go ahead and rez a cylinder on the ground...

In the "Object" tab, enter the following settings:
Size X: 0.158
Size Y: 0.300
Size Z: 0.440
Path Cut B: 0.150
Path Cut E: 0.850
Hollow: 0.95
Taper X: -0.75
Taper Y: -0.75

In the "Features" tab, enter the following settings:
Softness: 2.000
Gravity: 4.000
Drag: 4.000
Wind: 1.000
Tension: 1.000

In the "Texture" tab, click on the square above "Texture". In the Pick:Texture window, click on "Blank" and then "Select".
Click on the square above "Color". In the "Color Picker" window, click on the Black square and then "Select".

Go to the "General" tab. Change the Name to "Tutorial Panel".
Now Right-click on the "Tutorial Panel" object and select "Take" to take it into your Inventory.

Rez the "LoopRez v0.6 object, full perms" object on the ground.
Go ahead and follow the steps from the "Making Flexi Prim Skirts with Ged Larsen's LoopRez Script" tutorial. Create a flexi prim skirt using your newly created "Tutorial Panel".
Use the following settings for the LoopRez script (its the same settings as the "sample-short" skirt):
string objectName = "Tutorial Panel";
integer numObjects = 12;
float xRadius = .16;
float yRadius = .22;
float flareAngle = 45.0;
float bendCoefficient = 0.0;
vector rotOffset = <0.0, 180.0, 0.0>;
vector posOffset = <0.0, 0.0, 1.0>;

When you are done, you should have a little black skirt that looks something like this :)

Go ahead and attach the skirt to your Pelvis. Adjust the skirt as necessary.
For me, the skirt looks good with the following Rotation settings:
Rotation X: 180.00
Rotation Y: 74.00
Rotation Z: 180.00
Using the colored arrows to position the skirt. Using the numbers at the top middle of your screen as a guide, the following Position fits me well - X: 0.043, Y: 0.000, Z: 0.306.

You should now have a little black dress thats all ready for AttachmentSet :)
Adding AttachmentSet to the Skirt

While you are wearing the skirt, Right-click on the skirt and go to the "Content" tab.
Drap-and-drop the "AttachmentSet OSS" script from your Inventory into the "Content" tab of the skirt.
Right-click on the skirt and select "Detach". (This step is VERY important! The script wont work unless you Detach first!)
Look for the skirt in your Inventory and "Wear" it again.
Now, we are ready to setup the skirt with AttachmentSet :)
In your Chat window, type "/66 suspend" (without the quotes). You should see a reply from AttachmentSet that says, "[Your Skirt]: Skirt animations stopped."
Next type "/66 set stand". This sets up your standing position/rotation.

Find a comfortable chair nearby and sit in it :) You should use a chair without poseballs or poses installed. When in doubt, you can just rez a box and sit on it for now :P
You will notice that our skirt still looks bad...

Right-click on the skirt and select "Edit..."
Click on the "Rotate(Ctrl)" button at the top of the Edit window. Use the Green wheel to rotate the skirt up.
Alternatively, you can enter the following settings:
Rotation X: 0.00
Rotation Y: 38.00
Rotation Z: 0.00

Click on the "Position" button at the top of the Edit window. Use the Red arrow to slide the skirt forward and the Blue arrow to slide the skirt down.
Using the numbers at the top middle of your screen as a guide, the following Position fits me well - X: -0.052, Y: 0.000, Z: 0.191.
Once our sitting position/rotation looks good, we need to tell AdjustmentSet above it...
In your Chat window, type "/66 set sit".
Click the "Stand Up" button at the bottom of your screen. Notice that your skirt is in a weird position :P

OK, we are ready for AdjustmentSet to do its magic :)
In your Chat window, type "/66 resume".
Walk forward a little bit. You will notice your skirt now goes back to its "normal" standing position.
Go ahead and sit down again. Notice the magic :)
Congratulations! You just made a Self-Adjusting Flexi Skirt. Super cool, isnt it?
Adjusting for Other Actions

Most flexi skirts will go into your legs when you walk. This is typically hard for you to see yourself, but everyone around you can see it :P
You can fix this problem by rotating the skirt up a bit using the same steps as above. When you are done, just say "/66 set walk".

And you should be walking in style :)
AdjustmentSet can store adjustments for:
"/66 set stand": Standing
"/66 set sit": Sitting
"/66 set ground": Ground sit
"/66 set walk": Walking
"/66 set run": Running
Dont forget to check out Virrginia Tombola's AttachmentSet Tutorial for more details and information on AttachmentSet. And be sure you to thank Carricre Wind and Virrginia Tombola for creating AttachmentSet! :)

Im back for some more Dragon Tea.
And this time, no more looking up my skirt you guys! ;P
11563-071201-327680-82
© 2007 All Rights Reserved.