RE: jscript: how to select points from a deformer weights?
| Date : Thu, 29 Dec 2005 10:17:08 -0500 |
| To : <XSI(at)Softimage.COM> |
| From : "Andrew Skowronski" <askowron(at)Softimage.COM> |
| 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
|
- Follow-Ups:
- Re: jscript: how to select points from a deformer weights?
- From: "Oz Adi" <oz(at)broadcast.co.il>
- Re: jscript: how to select points from a deformer weights?
| DATE: | << | >> | THREAD: | << | >> | INDEX: | Main | Thread |
|---|
- Previous by Date: Re: jscript: how to select points from a deformer weights?
- Next by Date: Re: jscript: how to select points from a deformer weights?
- Previous by Thread: Re: jscript: how to select points from a deformer weights?
- Next by Thread: Re: jscript: how to select points from a deformer weights?
- Index(es):
| Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available. |