Re: convert edge/poly collections to points

2016-04-02 Thread Martin
Thanks Matt for your detailed response. I'll need to read it again when I get to my office but I think I understand it a little better now. About the tool I'm writing, It's a simple weight tool. Martin Sent from my iPhone > On 2016/04/03, at 8:28, Matt Lind wrote: > >

Re: convert edge/poly collections to points

2016-04-02 Thread Matt Lind
How you grab the points is very important as it dictates the type of information returned, and options for converting to/from other subcomponent types. Also, Softimage differentiates between the generic subcomponent classes vs. geometry-specific subcomponent classes. You need to pay

Re: convert edge/poly collections to points

2016-04-02 Thread Martin Yara
Taking a look at my old scripts I've just remembered how I used to do it. oColl = obj.ActivePrimitive.Geometry.CreateSubComponent(c.siVertexCluster) loop through the NeighborVertices and oColl.AddElement( point.index) I'm not sure if that's the best way to do it but it works. If it isn't, I'd

convert edge/poly collections to points

2016-04-02 Thread Martin Yara
Hi, I wrote a code that is using point collection from the selection or the object points: obj.ActivePrimitive.Geometry.Points or Selection(0).SubComponent.ComponentCollection Now I want to make it compatible with edge or poly selections, so I'm trying to get the neighbor vertices from them, but