jesusquintana
09-25-2006, 08:58 PM
Hallo everybody,
i want to create a custom attribute on a geometry node. in this attribute i want to store four vectors. i'm able to add the attribute, but just can't figure out how to store the values.
here's the example code:
$selection =`ls -sl`;
vector $a1 = <<0, 1, 1>>;
vector $b1 = <<9, 9, 9>>;
vector $ab1[2] = {$a1,$b};
addAttr -ln test -dt vectorArray $selection[0];
setAttr ($selection[0]+".test") -type vectorArray $ab1;
Could someone please be so kind to point out what i'm doing wrong.
thanks in advance.
--david
i want to create a custom attribute on a geometry node. in this attribute i want to store four vectors. i'm able to add the attribute, but just can't figure out how to store the values.
here's the example code:
$selection =`ls -sl`;
vector $a1 = <<0, 1, 1>>;
vector $b1 = <<9, 9, 9>>;
vector $ab1[2] = {$a1,$b};
addAttr -ln test -dt vectorArray $selection[0];
setAttr ($selection[0]+".test") -type vectorArray $ab1;
Could someone please be so kind to point out what i'm doing wrong.
thanks in advance.
--david
