MoI scatter tool

 From:  Max Smirnov (SMIRNOV)
6486.4 In reply to 6486.1 
In this post I'll tell about saveInstances script.
As I said above, with this script you can prepare data for Octane render. This data can be imported in Octane Render and loaded to the 'Scatter' node.

Here is an example of using this script.
I created a group of vectors (upper left corner) and replicated it along the curve using Array-curve tool. (total: 8900 vectors)


Let's select one group and see how the script works.

UI:
Filename.
If no 3dm-file has been loaded or saved yet, its value is instances.csv, and it will be saved in the current folder. If file is open, the script gets name from the 3dm-file. In this case, the file will be saved to that location.
Target units.
Here you can set a unit system for exporting. Octane render uses meters as a unit system. So default value is "m", but you can choose any value you want.

Other settings adds some randomness to regular distribution:
If all values is set to 0, the script exports exact positions for all objects


FB (Front/Back) - random X-shift
LR (Left/Right) - random Y-shift


UD (Up/Down) - random Z(elevation)-shift


Roll - random rotation around X-axis
Pitch - random rotation around Y-axis


Yaw - random rotation around Z-axis


Scale

EDITED: 7 Mar 2022 by SMIRNOV