Sometimes I want to do different things on a per element basis. I can’t figure out a workaround in vertex mode.
It would be great if there was a an element channel available in vertex iteration mode.
I realise it might be mildly slowish but I don’t care.
There seems to be a bug in the latest build, otherwise it should have all the tools to give you what you want.
It looks like when doing FaceLoopByVertex, the LoopChannel returns FaceElement 0 for all faces regardless of their actual element ID.
Otherwise you could simply output the result of LoopChannel FaceElement and limit the Loop to 1 iteration (since all faces of a vertex must have the same Element ID by definition) and you would get the Element ID of the vertex.
I will log it as a bug, I suspect the FaceElement channel is not calculated when in Vertex iteration mode.
Ah thanks Bobo,
I hadn’t actually tried the new build yet because of the other bug.
I hope Darcy can find a hour or so to fix this soon.
It’ll be handy for things like applying individual transformations to things like grass or leaves.
This has been fixed in our internal build together with a bunch of other bugs. Expect an update soon…