Forum for OctaneRender Lua scripting examples, discussion and support.

Here is a script for loading instaces and organize them in a single node .
The format of the expected file is

instances.oscr
--------------
file :W:\path\path\path\couch_004.obj
0 ,0 ,1 ,-2.59897858188629 ,0 ,1 ,0 ,0 ,-1 ,0 ,0 ,-16.4285114743529 ,0 ,0 ,0 ,1
file :W:\path\path\path\panel.obj
1 ,0 ,0 ,-5.59525827547891 ,0 ,1 ,0 ,0.7 ,0 ,0 ,1 ,-8.45729409959543 ,0 ,0 ,0 ,1
1 ,0 ,0 ,-5.59525827547891 ,0 ,1 ,0 ,0.7 ,0 ,0 ,1 ,-6.54479409959543 ,0 ,0 ,0 ,1
1 ,0 ,0 ,-10.4777582754789 ,0 ,1 ,0 ,0.7 ,0 ,0 ,1 ,-4.63229409959543 ,0 ,0 ,0 ,1
1 ,0 ,0 ,-10.4777582754789 ,0 ,1 ,0 ,0.7 ,0 ,0 ,1 ,-6.54479409959543 ,0 ,0 ,0 ,1
1 ,0 ,0 ,-10.4777582754789 ,0 ,1 ,0 ,0.7 ,0 ,0 ,1 ,-8.45729409959543 ,0 ,0 ,0 ,1
Attachments
gmillas