[MEL] unable to run global proc string[]

[MEL] unable to run global proc string[]

absoluteKelvin
Collaborator Collaborator
852 Views
2 Replies
Message 1 of 3

[MEL] unable to run global proc string[]

absoluteKelvin
Collaborator
Collaborator
global proc string[] getOrderedVertexLoop (string $edgeloop[])

 

tested the above with this line

 

getOrderedVertexLoop(`ls -sl -fl`);

getting this error.

Too many arguments.  Expected 1, found 2.

 

trying to pass an string array into the proc. but for some reason maya is not allowing me.

https://www.artstation.com/kelvintam
0 Likes
Accepted solutions (1)
853 Views
2 Replies
Replies (2)
Message 2 of 3

mcw0
Advisor
Advisor
Accepted solution

That looks like it should work.  Try this just as a test.

 

string $array[] = `ls -sl -fl`;

getOrderedVertexLoop($array);

0 Likes
Message 3 of 3

absoluteKelvin
Collaborator
Collaborator

Thanks. putting it in an array beforehand seems to work

https://www.artstation.com/kelvintam
0 Likes