I having a trouble with a code in MAYA 2020.
I want to create a new expression into a default value of a Arnold
aiUserDataInt
I need the default value of a
aiUserDataInt = attribute
from a geometry that I crate name"ID"
so, my code looks like this:
string $Selected[] = `ls -selection`;
for ($node in $Selected)
aiUserDataInt1.default = $Selected.id;
but I have these error:
// Error: Line 2.37: Cannot cast data of type string[] to float. //
So, I suppose default value do not accept arrays
my question would be: is there a way to convert array into float?
or what am I doing wrong?
Thanks in advance