Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

MEL for change alpha as luminance

MEL for change alpha as luminance

Giovanikc
Participant Participant
1,044 Views
4 Replies
Message 1 of 5

MEL for change alpha as luminance

Giovanikc
Participant
Participant

Hello,

Does anyone know how it's possible to use MEL to select all my texture nodes an change the value of the attribute Alpha Is Luminance inside Color Balance? 

 

Thank you.

0 Likes
Accepted solutions (1)
1,045 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable

{
    string $selectedFileNodes[] = `ls -sl`;
    string $each;
    for ($each in $selectedFileNodes)
    {
        setAttr ($each + ".alphaIsLuminance") 1;
    }
}

0 Likes
Message 3 of 5

Anonymous
Not applicable
Accepted solution

{
    string $allFileNodes[] = `ls -typ file`;
    string $each;
    for ($each in $allFileNodes)
    {
        setAttr ($each + ".alphaIsLuminance") 1;
    }
}

Message 4 of 5

Giovanikc
Participant
Participant

Thank you @Anonymous 

0 Likes
Message 5 of 5

Anonymous
Not applicable

Благодарю Майю...

0 Likes