The problem with rotation along red axis is solved. Two elements of a rotation matrix were corrected (negative sign in tr[6], tr[9])
Code: Select all
tt=[tr[0],tr[8],-(tr[4]),tr[12].to_m, tr[2],tr[10],-(tr[6]),tr[14].to_m, -(tr[1]),-(tr[9]),tr[5],-(tr[13].to_m)]
I also added some code to run the script from a pull down plugin menu in Sketchup - requires further work (I've never done ruby coding before

Go to plugins - Octane scatter data from components (remember to select a component before running it).