mbattcock
I think this has been asked before but I couldn't find the post or a definitive answer..

I am instancing some geometry onto a mesh using a point node and an instancer. I can orient the instances by using the normalPP from the point node plugged into aimDirection. However they are still twisting around that normal vector, how can I prevent this? I guess its the cross product of the normal with an up vector or something..? Also i'd like to use a group node to select which points are instanced to but this seems to have no effect.

I've attached an example file illustrating the two problems.

Thanks,
Mike


Quote 0 0
pshipkov
You need to supply the tangent or binormal as an aimUp vector.

Quote 0 0
mbattcock
Thanks Peter, I though of this as I left last night. Exactly the same as Houdini. Can I get this from the point node or should I use a pointOnMeshInfo or attributeTransfer?

Any idea about instancing to specific points with the group node? I want to have a set of 5 meshes instanced to alternating rows and another 5 mesh randomly instanced to the rows between those. So I was going to use two separate instancer nodes for this. Do you think that's best or should I use an if statement in the point nodes weightPP to select objectIDs (I thought that would be slower)?

Cheers
Quote 0 0
mbattcock
It doesnt look like I can get a tangent or binormal from the point node so I tried pointsOnMeshInfo node but it doesn't seem to be working (i've not used this node before).. Could you make a quick example? If this doesn't work I can instance the geometry by hand and use follicles to attach them. This wouldn't be ideal as its not live etc..
Quote 0 0
mbattcock
It seems like you need to plug the tangent into aimWorldUp as opposed aimUp.. I think its working now... Thanks again
Quote 0 0
mbattcock
I fixed the other issue with the groups. I've attached a file if anyone runs into the same problem.


Quote 0 0