A little preliminary study resulted in an outline of a possible script.
- Brian
Outline for a script to be called LayoutView, November 8, 2015
Assuming the original is located flat in the front view.
Utilize code from ScriptArray, and possibly CenterAtOrigin, Randomize, PutOnGround, etc.
Making 10 copies of the object.
User dialog to select original.
User dialog to select the new location in front view of the layout,
by selecting where the new center point of the original is to be located.
Or its upper left corner? Or have a Checkbox to center at origin?
User has option to select x and y scaling numbers, for the spacing of the views.
var center = objects.getHighAccuracyBoundingBox().center;
center, along with x and y spacing values of the copies,
may be used to establish horizontal and vertical rotation axi.
...BoundingBox().xLength, ...BoundingBox().yLength, and ...BoundingBox().zLength
provide values which may be used to calculate the horizontal and vertical spacing of the various views.
If z value is much larger than x or y, spacing will need to be wide and tall.
Code for copying the original 9 times, and make the appropriate rotations.
...
|