after Sop to Chop need to translate nx,ny,nz to rx,ry,rz

To attach instances to a Sop i have been doing sop to chop and mapping tx,ty,tz into the instancing translation.

Now I would like to align the instances to the surface normal.

I have added in Sop to Trop’s Attribute Scope an N and nx ny nz look good but now do I need to code the maths to convert to rx ry rz or is there a chopper solution?

Here is my current solution using two atan2 calls to convert nx,ny,nz to rx,ry

[url]http://toefiles.blogspot.co.nz/[/url]

I have just added Rotate To Vector feature in the Instancing page. Will be in build 10900 or later. This should make this much easier to work with

Awesome! I’ve been running into the same issue.

Same issue. I posted elsewhere then found this. The Rotate to Vector option is awesome, but when I also scale, the order (I presume) is messed up and bad things happen.

No way to change the order? Or scale somewhere other than the instance scale page?

Bruce

FYI - I couldn’t solve this, so recreated channels to position my instances. A bit of a bodge.

FR - Ability to have the ‘rotate to vector’ adjustable in order.

Bruce