How to input a transform value for scatter node

Forums: How to input a transform value for scatter node
Forum for OctaneRender Lua scripting examples, discussion and support.

How to input a transform value for scatter node

Postby xhm2855 » Fri Apr 17, 2015 6:44 am

xhm2855 Fri Apr 17, 2015 6:44 am
Now , I am writing a scatter node in octane with lua script. and I write some words as below. But when it run, it will appears an error as 'Expecting a vector argument.' . I checked this sentence and found it referred to the sentence of 'CoffeeTableScatterNode:setAttribute("transforms",matrix);' How could I do for such example?

Thanks.

Below is the sourcecode of the lua.

CoffeeTableScatterNode=octane.node.create{
name="Coffee_Table";
type=octane.NT_GEO_SCATTER;
position={84.0175,88.5058};
}
CoffeeTableScatterNode:setAttribute("scaleUnitType",4);
matrix = {
{0,0,-1},
{1.95,0,1},
{-0,0.01,1},
{-0,0,-3.75}
}
CoffeeTableScatterNode:setAttribute("transforms",matrix);
CoffeeTableScatterNode:setAttribute("inherit",true);
xhm2855
Licensed Customer
Licensed Customer
 
Posts: 12
Joined: Mon Dec 22, 2014 11:08 am

Re: How to input a transform value for scatter node

Postby smicha » Fri Apr 17, 2015 6:51 am

smicha Fri Apr 17, 2015 6:51 am
If this may help...

viewtopic.php?f=73&t=41388
Win7, Modo 10.1, Octane for Modo and Sketchup, nVidia latest, TITAN+3x780 6GB, 2600K, P8P67WS, 32GB, 1350W
SMH10, EK, Airplex_480, SR1_560, 20xNB_PL2, 2xD5, Aquaero 6XT
build-log http://render.otoy.com/forum/viewtopic.php?f=9&t=42540
User avatar
smicha
Licensed Customer
Licensed Customer
 
Posts: 3141
Joined: Wed Sep 21, 2011 4:13 pm
Location: Warsaw, Poland

Re: How to input a transform value for scatter node

Postby xhm2855 » Fri Apr 17, 2015 7:21 am

xhm2855 Fri Apr 17, 2015 7:21 am
Thanks, but the problem is still existed.

Why the matrix of

matrix = {
{0,0,-1},
{1.95,0,1},
{-0,0.01,1},
{-0,0,-3.75}
}
is not a vector?

And how to set the A_TRANSFORMS of Scatter Node in Octane script?
xhm2855
Licensed Customer
Licensed Customer
 
Posts: 12
Joined: Mon Dec 22, 2014 11:08 am

Return to Lua Scripting


Who is online

Users browsing this forum: No registered users and 0 guests

Tue Aug 20, 2019 10:32 am [ UTC ]