Hi Pilou,
> So i will to know for example if native Orient can be used only with native nodes for obtain an exact results !
> Because it was created before the extensions!
Sorry, I don't know the answer to this.
> Problem for the moment i can't find a simple trick for have the good result!
> Difficulties (for me) is transform a selection in a "frame" usable! :)
> Orient something following a line or a face...surely trivial but...
For a curve you could call evaluateTangent on it to get its tangent direction and use that as the z axis of your frame, and you would then need to make the x and y axis directions by doing some vector math like using crossproduct.
If a curve is planar, (crv.isPlanar == true) then you can get the frame of its plane by crv.planarFrame
The next v4 beta will also has that for faces as well.
- Michael
|