Page 1 of 1

How to input a transform value for scatter node

PostPosted: Fri Apr 17, 2015 6:44 am
by xhm2855
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);

Re: How to input a transform value for scatter node

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

viewtopic.php?f=73&t=41388

Re: How to input a transform value for scatter node

PostPosted: Fri Apr 17, 2015 7:21 am
by xhm2855
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?