Cheers, I am writing on a tool that should get all attributes with a specific prefix and save them into an array.
When I use the listAttr on its own it gives me something like this:
// Result: message caching isHistoricallyInteresting nodeState...
My problem: I want to save the list of the Attribute with a specific prefix into an array
mel code:
string $currentSelection[] = `ls -sl`;
string $currentAttributes[];
$currentShapeNode = `ls -shapes -dag -sl $currentSelection`;
string $currentAttributes[] = `listAttr -ct "ai*"`;
print $currentAttributes;
The $currentAttributes
list stays empty. I can“t figure out what I am doing wrong.