Hey
One component already on the orgin plane this make it easy to do,
if you have scaleGroupFloat_dj.rb loaded.
target save and move meathod:
step 1: Make one component unique. (right click to context list)
step 2: 1-time left click of the component you want to change. Save target, via scaleGroupFloat_dj (press ok).
step 3: 2-times left click set axes to component and 3-times more edit select the object of the component . Using the Move to target, via scaleGroupFloat_dj.(press ok), will auto aline component to orgin plain. Now select ouside of component now your done.
All above steps is shown here
Movie_0007.gif
If both were non aline to orgin plain then do other with step two and three too.
Advance woking of this; just add the axes tool into the mix. then turning object is just a breeze, for those tools that needs to be aline to x-y plain for z axis drops .
examples usesages to
[Plugin] Color by Z
drop
sandbox.rb
smartdrop.rb
TIG-drapematerials.rb
TIG-Drop Material onto Instances
tt_component_dropper