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);