Message 1 of 8
[MEL] casting string array to float
Not applicable
09-10-2021
04:58 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
I having a trouble with a code.
I want to create a new expression into a default value of a Arnold aiUserDataInt
I need the default value of a aiUserDataInt = attribute frome 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?
Tnks in advance