Day 97: Flexi Skirts Part 1 (Ged Larsen's LoopRez Script)
This tutorial shows you how to make flexi prim skirts using Ged Larsen's LoopRez Script. You know, those skirts with flapping panels that I wear all the time? :)
Ive been using Ariane Brodie's Necklace Generator for some time to create prim skirts.
The script was designed to make necklaces. The script duplicates an object around a circle or an ellipse, while rotating each copy of the object to face the center. You can put a pearl or gem into the Necklace Generator, tweak some settings, and out comes a pearl or gem necklace.
The Necklace Generator was not specifically designed to make prim skirts. It gives you no control over the amount of flare (or poof) of the skirt panels. It also has a mind of its own regarding how far apart objects are created. Unfortunately, I had no clue regarding how the script worked. It lost me right after the word "make()" :P So fixing it was out of the question for me. And it is better than aligning 12-18 flexi skirt panels by hand.
Along came Ged Larsen. I met Ged through this blog. He is a genius when it comes to mathematics. When he saw the pains I had to endure while making skirts, he jumped right in and went to work on the Necklace Generator script.
Ged mentioned that there were some errors in the original script. Not only did he fix these errors, Ged created a vastly improved version of the script. I know its vastly improved because the numbers and symbols in Ged's script are different than the numbers and symbols in the original script! :P
The result is Ged Larsen's LoopRez Script, currently at version 0.6. Ged has generously agreed to share his LoopRez Script with the rest of us! So you can pick up a free copy of the script in the Tutorial Supplies area at the Sirena Hair sim (SLURL: Sirena Hair (116,217,22)).
Because Ged worked so hard on this script, I didnt just want to throw the script out there and walk away. To help you get started with making prim skirts, I included 2 sample skirt panels and settings for these panels. I am also writing this tutorial to give you step-by-step instructions on making one of these skirts. Hopefully, you will be creating beautiful gowns in no time! :)
Here's a quick overview of the steps to use LoopRez: First, rez the LoopRez object on the ground. Put the skirt panel you want to replicate into the Contents tab of the LoopRez object. Edit the LoopRez script with settings you want to use. Touch the LoopRez object to generate the skirt. Link the skirt panels. Wear and fit the skirt panels on your avatar.
1. Rezzing the LoopRez Object
The LoopRez Generator package has a "LoopRez v0.6 object, full perms", and a raw copy of the "LoopRez v0.6" script. If you are making skirts for yourself, or just testing, just use the LoopRez object. Drag and drop the "LoopRez v0.6 object, full perms" to the ground, and you are ready for the next step.
When you link the skirt panels towards the end of this tutorial, I recommend that you use a copy of the LoopRez object as the Root Prim of the flexi skirt. Thats because the LoopRez object happens to be in the exact center of the bunch of flexi skirt panels. It is much easier to handle and fit the skirt on your avatar using the LoopRez object as the Root Prim (instead of one of the panels).
Unfortunately, the Root Prim is special. Amongst other things, it determines the Creator of the linked set of objects. And Ged Larsen is the creator of the LoopRez object (and rightly deserves credit for it!). However, if you plan to sell your skirts, you may want your name there instead.
In that case, you need to create your own LoopRez Generator object. Its easy enough to do. Just rez a prim on the ground (I use a simple box). Edit the prim. In the General tab, change the name to "LoopRez v0.6 object". In the Texture tab, change the color/texture if you like (I use a different color for jewelry versus skirt generator).
Drag and drop the "LoopRez v0.6" script from your Inventory into the Contents tab of your LoopRez object. Also, drag and drop "sample-long" and "sample-short" into the Contents tab of your LoopRez object so you can complete the rest of this tutorial.
Now, Right-click on the LoopRez object you just created, select "More >", and click on "Take Copy". This saves a copy of the object in your Inventory.
2. Put Skirt Panel into the LoopRez Object
Now, drag and drop a copy of the object you want to replicate into the Contents tab of the LoopRez object. If you are making a skirt, this would be one of the skirt panels. I have included 2 sample skirt panels in the package, named "sample-long" and "sample-short".
The object can be a single prim, or could be a linked group of multi-prim objects. You can theoretically put a house in the LoopRez object, and it will create a necklace of houses (not highly recommended :P).
I do recommend that you apply Texture, Color, and Flexible Path (flexi) settings before putting it into the Looprez object. This will save you from having to apply settings to 18 separate objects later.
For this tutorial, just make sure that "sample-short" is in the Contents tab of the LoopRez object.
Note that if you plan to sell your skirt, you should eventually create your own panels. The LoopRez object simply replicates the skirt panels you put in there. Since I created the "sample-long" and "sample-short" panels, my name will show up as the Creator on those panels. This would be replicated to all the panels on the skirt. You can still sell the skirt, but my name would show up as Creator if some looked at the individual panels.
I would recommend going through this tutorial first with the sample panels, then coming back and creating your own. Its easy to make your own panels. I provided full Mod/Copy/Trans rights to the "sample-long" and "sample-short" panels. Just rez a Cylinder on the ground, and copy the settings from the Object and Texture tabs into your own Cylinder.
3. Edit the LoopRez Script
Heres the fun part :) You get to tell the script how you want your skirt made!
Edit the LoopRez object and go to the Contents tab. Double-click on the "LoopRez v0.6" script to edit it.
Here are the more important settings (pertaining to making skirts) and how I typically use them.
objectName: This is the name of the skirt panel you want to replicate. For this tutorial, change this to "sample-short".
numObjects: This is the number of panels you want in the skirt. I typically use 12-16, depending on the effect.
For this tutorial, use "numObjects = 12".
xRadius, yRadius: These 2 numbers control the width and length of the ellipse. It is the distance between the centers of the skirt panels and the LoopRez object at the widest points of the ellipse. And remember, this is the distance between the center of the Root Prim in each object. So if you have a large prim or a multi-prim object, these numbers determine the distance from the center, not the edges. If you make these 2 numbers the same, you will have a circle. The waist on most AV's is slightly elliptical.
For this tutorial, use "xRadius = .16", "yRadius = .22".
flareAngle: This is my favorite! This controls how much each skirt panel will be turned outward. In other words, this controls the "poof" of the skirt. You need to have a little poof in each skirt, because you want to bury the tops of the flexi-prim panels inside your AV (I know this doesnt sound good, but there is probably a bunch of stuff buried inside your AV at the moment :P)
For this tutorial, use "flareAngle = 45".
bendCoefficient: This generates objects in a wavy pattern ("saddle shape" as Ged puts it). You probably dont want this for a skirt.
For this tutorial, use "bendCoefficient = 0.0".
rotOffset: Regardless of how you positioned your skirt panel before putting it into the LoopRez object, your skirt panel will be generated as if the rotation were set to X=0, Y=0, Z=0. You can modify the rotation using this setting.
Most flexi prim panels are hollowed cylinders. You need to turn them upside down to work properly. As Ged points out in his comments, you can turn them upside down by changing these settings. However, because of the way I set the Path Cuts on the skirt panels, you need to set Y to 180.0.
For this tutorial, use "rotOffset = <0.0,>"
posOffset: This determines where the skirt panels will be rezzed relative to the LoopRez object. I typically set Z = 1.0 so the skirt appears above the LoopRez object (instead of below). But be carefult with these settings, or you may end up creating skirts in your neighbor's yard like I did :P
For this tutorial, use "posOffset = <0.0,>"
Unless you are really brave and can do calculus in your head, dont touch the rest of the script! And dont ask me how it works either :P
To save your changes, click on the "Save" button at the bottom of the window. Wait for the message "Save complete." to show up in the message area before closing the window.
4. Generate the Skirt
Alright, here comes the magic :)
Close the Edit window. Stand back, and Touch the LoopRez object (just click on it).
If all goes well, you should have a white short skirt above the LoopRez object! :)
If nothing happens, it may be one of 2 things:
First, you may be in an area that does not allow foreign scripts to run. There is typically an indicator icon at the top of your screen that shows this. Try moving to a public Sandbox just to see if your LoopRez object is working.
Second, the script may be disabled in the object. You can check by Editing the LoopRez object, going to the Content tab, and Double-clicking on the "LoopRez v0.6" script. This will open up the script editing window. At the lower left side of the window, there is a checkbox next to the word "Running". This checkbox needs to be checked. If it is not, then check it, exit Edit mode, and try again.
5. Linking the Skirt Panels
The newly created skirt panels are separate objects. We need to link them together to make a skirt. In addition, we want to add an object in the middle of these panels so it would be easier to position and fit the skirt. We will use a copy of the LoopRez object in the middle of the panels.
First, we are going to make a copy of the LoopRez object. Right-click on the LoopRez object, and select Edit. Now press and hold the Shift key. Click and hold on the Blue arrow and pull it up towards the skirts.
This will create a copy of the LoopRez object. Put this copy near the top of the skirt.
Go to the Content tab of the copy of the LoopRez object, and delete the "LoopRez v0.6" script (Right-click on it and select "Delete"). This will prevent accidentally setting off the script again. :)
Next, go to the Object tab and make the Size smaller. I typically use X=0.050, Y=0.050, Z=0.050.
Go to the General tab, and change the Name to "Sample Short Skirt".
Now while you are still in Edit mode, draw a box around all the skirt panels and the copy of the LoopRez object. Dont include the original LoopRez object. You may find it helpful to go to the Tools menu at the top of your screen and select "Select Only My Objects".
Then press and hold the Shift key. Click on the copy of the LoopRez object to deselect it. Click on it again to select it. This will make the copy of the LoopRez object the Root Prim.
Click on the Tools menu at the top of your screen and select "Link".
Now close the Edit window to get out of Edit mode. Right-click on the skirt and select "Take".
6. Fitting the Skirt
At last, we have something to Wear! :)
First, we need to create an SL skirt as the base.
Right-click on your avatar, and select "Appearance...". Select the Skirt tab. If you do not see the "Create New Skirt" button, then press the "Take Off" button.
Now, click on "Create New Skirt". Enter the following settings for the skirt:
Skirt Length: 30
Skirt Fit: 0
Bustle Skirt: 0
Press the "Save All" button. Press the "Close" button.
We are ready to put the flexi skirt on!
Go ahead and find the "Sample Short Skirt" object in your Inventory (probably under the "Object" folder). Right-click on it, select "Attach To >", and click in "Pelvis". You can also use "Stomach" if there is something attached to Pelvis, since Pelvis and Stomach are almost the same for a skirt.
When you first attach the skirt, it will be on its side. Right-click on the skirt panels, and select Edit. In the Object tab, change "Rotation (degrees) Y = 90".
Now slide the skirt into place using the 3 Red/Green/Blue arrows. As a reference, look at the numbers at the top of your screen. It fits me well at these settings: "X:0.000 Y:0.000 Z:0.394". Note that if you used the Stomach attachment point, these numbers would be different.
Depending on your body settings, you may need to Stretch the skirt pleats to fit. To Stretch the skirt pleats, go to the Edit window, click on "Stretch (Ctrl-Shift)" at the top of the Edit window. Now, click and hold one of the little white boxes around the skirt pleats and move it slowly away from your avatar.
It is not uncommon to have to make some individual adjustments to the skirt panels, particularly the ones in the back. To make these adjustments, go to the Edit window, click on "Edit linked parts" at the top of the Edit window. Now click on the skirt panel you want to adjust.
And here I am, wearing my new white skirt!
OK, now that you can make a short skirt, how about making a long skirt?
The procedure is exactly the same. You just need to use slightly different settings. The "sample-long" panel should already be in your LoopRez object. So here are the settings for making a long skirt:
objectName = "sample-long"
numObjects = 12
xRadius = .42
yRadius = .5
flareAngle = 45.0
bendCoefficient = 0.0
rotOffset = <0.0,>
posOffset = <0.0,>
Just repeat the above steps with these settings and you will have skirt panels fit for a gown or wedding dress :)
Hope you found this useful. And dont forget to thank Ged Larsen for his wonderful LoopRez script! :)
Update: Ged now has a website for discussions on the LoopRez script: Ged's Anti-Blog. So make sure you tell him how youve managed to use his wonderful creation, and any suggestions for improvement! :)
60545-071006-522591-31
© 2007 All Rights Reserved.





















































.jpg)
