I'm trying to do something that i thought it should be pretty easy thing to do but im somehow stuck on it. I want in a for loop where i modify each primitive to add an unique name to each primitive iteration.
In my actual use case i will extrude edges and create planks, then fracture it based on each name.
This is something close to my current setup, however it does not work
Hi, you could do the naming inside the loop. But the easiest way is to just use the connectivity-node a bit differently (as this node can also create string names for us based on connectivity directly). Just set the 'attribute type' to string, and optionally give it a prefix.
As matsvanreenen says, and for your information, your setup would have worked if your AttributeCreate node was between the ForEachBegin and ForEachEnd nodes, otherwise it won't be part of the loop.
If using in loop is nessesary, then put attribwrangle or name node before loop ends. "Add Spare Input" (google it, cool staff) and add foreach_begin1_metadata1 into the field. Then
or Cool_Name_`detail(-1,"iteration",0)` (name node). If "Add Spare Input" not an option, add direct reference, replace detail(-1,"iteration",0) with detail("../foreach_begin1_metadata1/","iteration",0) (added just for other peoples)