The problem with rotation along red axis is solved. Two elements of a rotation matrix were corrected (negative sign in tr, tr)
- Code: Select all
tt=[tr,tr,-(tr),tr.to_m, tr,tr,-(tr),tr.to_m, -(tr),-(tr),tr,-(tr.to_m)]
Latest version of .rb file is attached. I changed the name of it to "octane_scatter.rb".
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).