Introduction to Maya - Rendering in Arnold
This course will look at the fundamentals of rendering in Arnold. We'll go through the different light types available, cameras, shaders, Arnold's render settings and finally how to split an image into render passes (AOV's), before we then reassemble it i
# 1 07-12-2021 , 07:53 AM
Registered User
Join Date: Nov 2019
Posts: 1

Automate joints RotateOrder

I was following this tutorial and I couldn't make this script to work.

That's the script i'm typing

string $listofjoints[] = `listRelatives -type joint -ad`;

for($joint in $listofjoints)
setAttr ($joint + " .rotateOrder ") 4;

That is the error Maya gives me.
// Error: Line 5.39: Illegal operation "+" on data of type string[]. //

That's my first script in MEL so can anyone tell me what's wrong it?

Thanks in advance!

Last edited by Mordecai; 07-12-2021 at 07:57 AM.
Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads