General Category > ASL Scripts

Braid script request

(1/2) > >>

lynn22:
I have no idea on how to write a script and would be very grateful if anyone capable could write (if at all possible, of course) a script to build a braid or plait.

This would be very useful for all kind of purposes and not just hair braids.

I'm building this native American head because I very much like the noble stance of the man in the original photo.
I still have to figure out how to best build the overall hair mesh but I have already tried several ways of building a braid but nothing really works.
A script like the chainmaker from NickE, is the closest to resembling a braid but it needs a twist of 3 strands and chainmaker only simulates 2 strands.

The attached scanline renders are of the head mesh (not subdivided) to give you an idea.

Should anyone take this on, then many thanks in advance.

ADSohr:
Hey Lynn,

I can't write scripts, but here is a way you could model your braids.


1. Make a simple cube object, give it 12 divisions X and Y. Rotate it 45 degrees.

2. Delete all unnecessary vertices, leaving a structure like what is shown in "Type2_Step2". Fill in all the gaps that are left by deleting vertices.

3. Take the rows of vertices shown in yellow and merge them together. Move the merged vertices to line up straight in the X direction like shown in green.

4. Now shape the braids by selecting the edges that surround the braids and pulling them back along the Y direction. Go to Edit>Edge Properties, and make the edges creased. Double click the object in "Object" mode, make the crease angle 91*. This should make it nice and smooth with creases where the hair is folded under another braid of hair. Give it a material and show us what you come up with!

You can delete the edges on top and bottom, copy the object and move it along Y direction and join it to the original, then merge vertices. This mesh is seamlesly tilable, so you can make your braid as long as you wish.

lynn22:
ADSohr, many, many thanks. Your system works wonderfully, I'm over the moon !!

I made the basic block and copied 2 more just to get the feel. It's quite late here so the fine tuning will be for tomorrow.

Here's a sample :)

Thanks again

ADSohr:
You are welcome. Yours actually looks better than mine!  :D

lynn22:
About the hair in general, I tried several possibilities and none looked like hair rather more like a helmet. grrrrr

Solution building the hair strand by strand, pretty much like building a wig ;D)

In the old days, native Americans used to grease their hair so that would make it fall in strands and it also shows in the original photo.

This is what it will look like .... still some way to go though

Navigation

[0] Message Index

[#] Next page

Go to full version