enzyme69
Just out of curiosity, would it be possible to do some kind of ID reordering for Points?

I am trying to create this effect where points got scattered inside an animated mesh, but need for proper vertex ID order so that when I use PointCloudToCurve SOuP, the resulting curve is only connecting between close neighbour.

See, if I draw Particles (with Radius), and then connect PointCloudToCurve, I am getting Curve result that is "in order".

Scatter, but in order.
enzyme69
I am probably imagining Sort SOuP node. But is there a hack?

Could it be possible if we use Group node and whenever point gets grouped, Maya understand the new ID order?
Reply 0 0
noizfactory
Do you want to output multiple curves from different ids instead of a single curve from all the scatter points? If so then there's a new pointToMultiCurve node which does exactly that.
Reply 0 0
enzyme69
@Sachin
Interesting. I always wonder what the multiSOuP node is for. I used it once following the examples.

pointToMultiCurve... is this when we have multiple curves made out of Point Cloud created by Particles and have ability to group by pattern with different ID and then do tracing?

For this, I am thinking more of way of sorting Point Cloud. Or Point Cloud To Curve, but only closest distance point. Not sure how to do this.

I bet Peter has solution.
Reply 0 0
pshipkov
There is an example scene in the archive that showcases the pointToMultiCurve node.
Reply 0 0
pshipkov
I don't have anything for reordering points.
Maybe i should do something about it. I think reordering of meshes makes sense only in few specific cases for modeling, but Maya already has node that handles that in the devkit examples.
I think for curves it makes a lot more sense, but the problem is that Maya's nurbsCurve engine and tools do not support that. It is not like in Houdini where point is an "abstraction layer" on top of the actual vertices, CVs, etc.
Reply 0 0
enzyme69
@pshipkov

I found the pointCloudToMultiCurve example. That's exactly one example I was thinking to do. Will study this one today.

My simple logic is like this: maybe if a Group SOuP can accumulatively group points, perhaps that grouping order can be used as new Points ordering.

Cheers Peter.
Reply 0 0
pshipkov
not sure what you mean
Reply 0 0
enzyme69
Group SOuP has this "animate" option that seems to accumulate groups of components overtime via Bounding Object.

Maybe this can be used as new order number for Point Cloud To Curve to draw the curve.

Sorry if that does not make sense.

Anyways, if I change the question: Is there a way to "connect" only points that are close to each other? More like ordered connection.
Reply 0 0
JeremyR
I always liked the idea of somehow attaching mesh, curves or PFX to nConstraints network. You can get some nice patterns with nContraints, nearest neighbor etc.
Reply 0 0
noizfactory
@Jeremy - Yeah, it would have been great if nConstraints could be converted to something useable like curves. I remember asking Peter for such an option in one thread some time ago and it seems that Maya doesn't allow a straightforward method of doing this.
Reply 0 0
pshipkov
I am missing the point here. Can you guys explain what exactly behaviour you miss ?
I mean, reordering of component IDs i understand but i am not sure how that overlaps with what the nConstraints are doing. I think that pointCloudToCurve will mimic the nConstraints thing, but also i think your are onto something else here.

Thanks.

Reply 0 0
JeremyR
Perhaps what Im trying to get at here is nConstraints ability to connect based on user input such as component order, nearest pairs or within max distance. enzyme wants control over point ID so that he has some way of  creating a logical order for creating a curve. How about being able to order based on nearest pairs or every second point, maybe evaluate the pointCloud radius and order IDs from the perimeter slowly spiralling in to center or vice versa. Even start from perimeter then go into centre then back out to radius again until all the way around.

I dont know just some interesting algorithms that will create some cool curve patterns. Just throwing stuff into the mix. 
Reply 0 0
pshipkov
Well, most of that can be achieved with the point node, correct ? Once we provide set of points to it we can slice and dice them any way we want. My point here is that what you ask here for requires much more custom logic than a generic node can provide. Think about it - for example - center to boundary and/or back sorting method is still going to give you set of IDs that will not form nice curve, or other geometric shape. I think at this point we have to code the exact behaviour based on specific situation. I think in this case the point node is the way to go.
Reply 0 0
Reply