Kerusi
01-06-2009, 06:29 AM
hi guys, i'm developing a small ui to create some custom attributes and tools that i use frequently. I encountered a problem when i tried to combine my strings together,i think it is caused by my brackets . I hope you guys can help me out with this.
button -c ( "addAttr -ln kus_rot0 -dt vectorArray $nodeName;" +
"addAttr -ln kus_rot -dt vectorArray $nodeName;" +
"setAttr -e -keyable true ($nodeName +".kus_rot");")-l custom rotation;
tried to use the wiggly brackets =p, or the square brackets but it doesn;t work.Is there any other way to separate these strings into separate lines? i want to assign a button to create a series of custom attributes and it will end up very long .
edit>added the code box.
button -c ( "addAttr -ln kus_rot0 -dt vectorArray $nodeName;" +
"addAttr -ln kus_rot -dt vectorArray $nodeName;" +
"setAttr -e -keyable true ($nodeName +".kus_rot");")-l custom rotation;
tried to use the wiggly brackets =p, or the square brackets but it doesn;t work.Is there any other way to separate these strings into separate lines? i want to assign a button to create a series of custom attributes and it will end up very long .
edit>added the code box.
