Load instances

Forums: Load instances
Forum for OctaneRender Lua scripting examples, discussion and support.

Load instances

Postby gmillas » Fri May 16, 2014 5:39 am

gmillas Fri May 16, 2014 5:39 am
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
Load Instances.lua
(3.25 KiB) Downloaded 655 times
gmillas
Licensed Customer
Licensed Customer
 
Posts: 45
Joined: Fri Jun 25, 2010 6:15 am
Location: Greece

Return to Lua Scripting


Who is online

Users browsing this forum: No registered users and 16 guests

Fri Apr 26, 2024 2:53 am [ UTC ]