I need help about Maya Mel


#1

Hello
I can store an attribute as a variable.
but I can not assign that variable as an attribute to an object.
does any one knows what should I do?

here is an example that I did before:
THE PROBLEM COMES FROM THE LAST LINE. I DONT KNOW THE SYNTAX

string $jnts[] = ls -sl;

string $p_cons[] = parentConstraint;

string $val[] = listAttr -w -k -v;
string $ik_val = $val[13];

setAttr (tar_parentConstraint1 + “.” + $ik_val) 0;


#2

Perhaps you would get a better response in the Maya-specific “Maya Programming” subforum? It’s mostly a discussion of MEL and Python scripting for Maya, lots of good stuff there.

https://forums.cgsociety.org/c/autodesk/maya-programming

#3

Posted to Wrong Forum