Robert K
Hello,

Copier gives me 100 spheres as one mesh.  I need to split the one mesh into 8 or any number of meshes to feed into multiple nCloths nodes.  Any thoughts ?

-R
Reply 0 0
pshipkov
There are many ways to do that.
Providing you example for one of them.
Check the attached file.
Reply 0 0
Robert K
That's very cool.  I was thinking adding the same geo multiple times to the copier and try to separate the output using the random index.  Your setup is limited to the rgb I guess.  I need to nCloth the output and my cpu is not getting utilized for the nucleus so I though if I can separate the geo into the numbers of cores I would get faster calculation.  Maybe there is a better way?

thanks,
R
Reply 0 0
pshipkov
Actually not at all.
This is just a simple example that uses vertex colors to recognize "partitions" within the output geometry.
You can have as many attributes tagging anything you may ever need.
Recently i made to copier node handle arbitrary number of "channels" - look at the inDataPP/outDataPP attributes.
The same copy-stamping operation will be performed on them so the outDataPP will match the output geometry. From that point you can take these "layers" that map to the output geometry and do whatever you want with them.
Reply 0 0
Robert K
Hi Peter,

I've got a scene here that I think is very close to work.  The displayComponent node tells me that but it's not giving the result like your previous example file attached.  Would be great if you could have a look and see what's going wrong.

Cheers,
Robert
Reply 0 0
Robert K
Got one type working attached. Any plans of making soup container node ?
Reply 0 0
pshipkov
Glad to see you figured it out.
I was just getting to your previous example.

What do you mean about container ?
Reply 0 0
Robert K
I've been experimenting with the maya container node and soup.  It kinda works.  Not so well with the arrayExpression node.  I can't publish much to the asset container UI.  I create an extra attribute on the arrayExpression node which I can publish to the container node.  But when I try to call the value and pipe it into the expression I get an message:

// Warning: float $v = "getAttr arrayExpression2.colorValue"; //
// Warning: Line 14.49 : Converting string "getAttr" to a float value of 0. //

float $v = "getAttr arrayExpression2.colorValue

if ($E == float($v)) $E = 1;
else $E = 0;

When you have many many nodes doing same thing it starts to make sense to put them in a container and have them as a asset node.  Maya container node should really solve it.
Reply 0 0
pshipkov
Maya containers are kind of unfinished.
I tried to use them once long time ago.
I don't know what situation you are in, but my advise would be to stay away from them if you can.
Cannot give you better advise here, sorry. :)
Reply 0 0
Reply