DickyT
Hi all,

Has anybody managed to pass a component list (generated by a group node) to an nComponent node controlling a dynamic nConstraint?
I've seen examples driving weights on an nComponent node,
but never the component list, and I can't work out how to do it myself.

Cheers,

RichT

Segway all the way!
Reply 0 0
pshipkov
As far as i remember it is just an integer array. GetAttr it to verify.

Reply 0 0
DickyT
Just tested - it is a float array I think.
What would be a good way to set this attribute so that vertex's inside a bounding box were added to this list on a per frame basis?
I was thinking I could use an expression to cycle through an transfer attribute's weightPP, creating an array made of vertices with non-zero weights.
This would involve a fiddly task of using mel to flush then set the multi attribute of the "componentIndices".
Or is there a better/faster way?

Thanks for the help!

Segway all the way!
Reply 0 0
specter
Hi DickyT
 
Did you find a way to pass a component list to an nComponent node?
Would love to find a solution for this!
 
greetings
Reply 0 0
pshipkov
That's simple int array.
The group node can do it.
Reply 0 0
specter
Hi Peter and thanx again!

I'm sorry, but i should had read the wiki before and look closer into group node. i hadnt checked the output object group attribute.
now i can connect the group node.

thanx!
Reply 0 0
specter
Hi again :)

Ok, it still cannot connect the outComponents from the group node to the componentIndices of the nComponent. I have the strong feeling that i just missed something very basic. i read the wiki and the docs but couldnt find a solution. is there anywhere a soup api guide, where i can find the node atrribute description and what data types they are?

greetings
Reply 0 0
kishxn

 nParticleShape1.a =0;

 nParticleShape1  is connected to componentToComponent constraint......

connectAttr -f nParticleShape1.a nComponent1.glueStrengthPerVertex;

but  glueStrengthPerVertex is not work.............
why?



 






Reply 0 0
pshipkov
What i see is that dynamically adjusting nComponents is unstable. I got some crashes and in general things freak out.
I think we are better off slapping constraint to all points or the subset of points we are interested in and then adjust the constraint weights.
Adjusting constraint weights is easy - they are double arrays and we feed them using the standard SOuP techniques.
Reply 0 0
Reply