BigRoy
Hey!

I'm trying to use SOUP nodes to do some math stuff with arrays.

I've found the point node, but it only seems to work with arrays related to the amount of points on a mesh.

If I just connect to vector array attributes to the inNormalPP and inNormalPP2 to do some calculations in that expression field it doesn't seem to do anything (and yes the enable button is checked, hehe.)

Thanks in advance!

Regards,
Roy

Reply 0 0
pshipkov
yeah, the point node is tied to geometry.

you can try the pyExpression one.

but in general few people mentioned that having node that operates on arrays will be a good thing.
i think i may give that a try sooner than later.
Reply 0 0
RossGGG
I'm using a pyExpression node to do an operation on an array (getting the face area from an array containing faceIds).  I tried putting my results in the OF attribute, but I can't seem to connect that to any other SOuP nodes as an array.  What is the best way to do this?
Reply 0 0
RossGGG
I was finally able to figure it out.  When I tried to use the node editor to connect the OF attribute to a multiToArray node it would only connect the first value.  Using a command to make the connection was necessary to get the whole array to populate:

MEL:     connectAttr -force pyExpression1.OF[0] multiToArray1.inWeightList[0].weights[0];
pymel:   pm.PyNode('pyExpression1').OF.connect(pm.PyNode('multiToArray1').inWeightList.weights, f=True)
Reply 0 0
Reply