So on to the next one: I need to take the cut and / or density maps into
account...
They dont seem to exist as parameters on the hair object.
I did find a parameter called "Density" under the hair parameters, but
changing its value doesnt have any effect.
(its in the explorer, not the PPG, and you can also call it with .parameters
on the hairobject)
Couldnt find a cut parameter though, so I suppose this .hair.density
parameter is not related to the DensityMap.
Now to my further surprise, the weightmap on the hair object is quite
different from the weightmap on the surface.
in my scene, the surface had 58 points, the weightmap had 58 values.
The hair object had 812 points (58*14), but it's weightmap had 336
values?????
Whatever's up with that?
What I'd like to do is find back wether or not a weightmap is plugged into
either of the DensityMap or CutMap ports, and find the corresponding
weightmap(s) on the surface. Any hints?
Right now Im just searching all the weightmaps on the object, and let the
user select the proper one, but its not ideal.
Again, if there's any docs on hair and scripting, I'd love to know where!
> Hair is just a geometry with no faces, just points. They're in order, 13
> points to a strand so to get the first point of strand 'n' multiply n x
> 13.
> The first point of each strand isn't on the surface so you have to find
> which point on the mesh the strand is attached to and use that as the root
> of the strand. It's all great fun.
> Have a script. There's a function in there gets the hair emitter for you
> and
> another that arranges everything into a more useable array. Or something
> that I can't remember because it was a while back.
>
>> -----Original Message-----
>> From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On
>> Behalf Of peter boeykens
>> Sent: 10 October 2007 14:10
>> To: XSI(at)Softimage.COM
>> Subject: [scripting] hair in xsi
>>
>> just trying to find info on how to access hair in XSI through
>> scripting.
>>
>> references to hair in the scripting docs are scarce to say it in very
>> diplomatic terms.
>>
>> are there any hair specific objects/methods? (such as a strand, a root,
>> a >> tip?) I can access the points as one big linear collection,
>> containing (14 x
>> the amount of strands) points - is that all there is to it?
>>
>> Isnt there an organisation per strand? (when selecting points in the UI
>> it >> definitely looks like it - the points name is [strand,index on
>> strand]
>> - but >> this doesnt seem to be reflected in the pointcollection.
>>
>> Is there a way to know what cluster a hair object is connected to?
>> and is there a direct correspondence between the index of strands (if
>> strands have such a thing as an index?) and the indices of points in
>> the cluster the hair is generated from?
>>
>> when selecting points I could find a way to select the root point
>> itself, so it looks like there is none as part of the hair object? (with
>> there
>> being 14 >> segments per strands and 14xthe number of strands points per
>> hair
>> object, it looks like the 15th point doesnt really exist!
>> So are the hair strands using the cluster's points as root?
>>
>> And is there any way to access the render hairs rather than the guide
>> hairs?
>> ...
>> any hints appreciated
>>
>> P
>>
>>
>>
>> ---
>> Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in
>> body:
>> unsubscribe xsi
>
> http://www.bbc.co.uk/
> This e-mail (and any attachments) is confidential and may contain personal
> views which are not the views of the BBC unless specifically stated.
> If you have received it in error, please delete it from your system.
> Do not use, copy or disclose the information in any way nor act in
> reliance on it and notify the sender immediately.
> Please note that the BBC monitors e-mails sent or received.
> Further communication will signify your consent to this.
>
>
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi