Farzarlon
Hi my back ground was Houdini and I am really new to soup, found this plugin is really powerful! quick question here trying to figure out how to do the Houdini sweep trick using soup, since Maya don't have control for normals on curve, I am wondering how can I instance the object along the curve and let the geo facing the right direction? (each geo facing the vector direction )

the simple file is attached below
Reply 0 0
pshipkov
Check the attached file.
Reply 0 0
Farzarlon
Thanks for the reply, is there a way to control the rotation(aiming direction) of the geo? once I enable the normal option on points node, pointAttributeToArray no longer works, if i add another arrayToDynArrays as "rotation" and connect it with pointAttributeToArray, it sort of give me something but i still can't find a way to actually control it?
Reply 0 0
pshipkov
Maya's instancer interprets rotation differently than aim direction.
Normal vectors represent direction so we use them as aimDirection in the instancer. This of course works to a point. To further stabilize things we need to provide and up vectors (instancer aimUp) so things don't flip if geometry is deforming a lot. For up vectors i usually use point tangents.
This approach is more cumbersome and i prefer to use rotation directly:

geometry -> pointAttributeToArray.outRotationPP (make sure the "rotation" flag is on) -> arrayToDynArrays (local variable "rotation") -> instancer

If you want to alter rotation on the fly insert point node between pointAttributeToArray and arrayToDynArrays.
Or use attributeTransfer before the geometry to alter the normals.
Reply 0 0
Farzarlon
thank you! that was really helpful!
I went through all the sample files and still have a question, how can I trigger the animation on instanced geo by bounding box? instead of using 100 instance objects, I tried with ncloth with weightPP, how ever it triggered all the objects at once, so I am thinking about using cache files, but not sure how should I plug the outWeightPP to?
Reply 0 0
pshipkov
Oh boy, this is Maya man. And instancing in Maya is very limited.

I think you want to try the copier node. It is much closer to what you would expect from let's say copy sop in Houdini.

If you insist on Maya's instancer then i think you best bet will be to bake the animation to individual objects and then "swap" them on per-point basis using the objectIndex local variable of the instancer.

As for altering the object index on PP level using bounding object - there are examples how to do attribute transferring to particles. You basically have to transfer "weight" values and then modify the index using particle expression according to that.


 
Reply 0 0
Reply