Thanks! I'll check this up.
in the meantime, I tried selecting the
points geometry indexes, by the index number of the returned array
-
if weightArray[5] is at 100, I
selected point number 5 on the geometry..
it seems to work... maybe I missed
something , and it's wrong..?
----- Original Message -----
Sent: Thursday, December 29, 2005
5:17 PM
Subject: RE: jscript: how to
select points from a deformer weights?
You can build a jscript array with all the indexes of the
points that have non-zero weights for a particular
point.
Be sure that you determine the real geometry indexes, not the
index of the point within a cluster.
The mapping infromation is available via the Cluster associated
with the ClusterProperty that stores the deformation
data.
Check out examples in the reference to learn more about
that.
When you have the array of indexes you can call
Geometry.CreateCluster.
To Select the points build a string similar to the string that
gets logged when to select some points,
e.g. objname.pnt[1,2,3]
The JScript array.join method is useful for turning an array
into a comma separated string.
-Andrew
-----Original Message-----
From:
owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM]On Behalf
Of Oz Adi
Posted At: Tuesday, December 27, 2005 10:38
AM
Posted To: xsi
Conversation: jscript: how to
select points from a deformer weights?
Subject: jscript:
how to select points from a deformer weights?
let's say I got an envelope with two
bones, all weights are set 100% to the closest bone.
I am trying to select through
scripting, the points that are assigned to each
deformer.
I can access the weights using the
GetDeformerWeights method,
but I just cant find a way to,
then select those points, or make a point cluster of
them.
I am still studying Jscript, so I am
just a begginer.. so I've spent over 10 hours trying to figure it
out.. and no success :)
any tip or direction would be greatly
appreciated..
cheers,