03-14-2020, 05:54 PM
(03-14-2020, 04:37 PM)tyFlow Wrote: Well for leaves another option is to just procedurally generate a fairly accurate pivot. You can use the Move Pivots operator to move the leaves pivots to the closest point on the nearest branch, and the Rotation operator (with affect shapes turned off) to orient the pivot to the nearest point on the branch, so the z-axis of the pivot matches the surface normal.
Certainly using the Custom Attributes of your leaves somehow would give you perfect accuracy, but adding some kind of "Birth from Custom Attributes" operator would be so esoteric you might be the only one who ever actually utilizes it
yes using move pivot is my current closest solution...
regarding "i am the only one who ever actually utilizes it " not really sure about that.
the idea is we want to drive value with another value that we prepared beforehand. its the same concept as data operator in PFLOW.
there is "object parameter" which does the same (see attached image). i can acces bend angle value to be use for anything. the value doesn't have to be matrix...it can be float,vector,boolean,etc.
and it doesn't have to be implemented in "birth" operator. as along it can acquire data doesn't matter where you gonna implement it. just plug it to be used in other operator. for example set position from attribute/parameter. or any other use case. its quite flexible actually (just my opinion).
