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.

A simple Material assignment break maya shading/viewport

A simple Material assignment break maya shading/viewport

Bob.Bon2000
Collaborator Collaborator
272 Views
2 Replies
Message 1 of 3

A simple Material assignment break maya shading/viewport

Bob.Bon2000
Collaborator
Collaborator

Hey

Currently in maya 2023.3

 

The artist selects geometry in the viewport and applies materialA via GUI/Maya interface.
Then we run this code >

sets -e -forceElement VRayLightMtl1SG |pPlane1;
sets -e -forceElement VRayLightMtl1SG |pCylinder1;
sets -e -forceElement VRayLightMtl1SG |cascvasv2;


sets -e -forceElement VRayMtl3SG |pPlane1.f[0:50];
sets -e -forceElement VRayMtl3SG |pCylinder1.f[0:59];
sets -e -forceElement VRayMtl3SG |cascvasv2.f[0:99];

 

Its just 2 planes and a cylinder.

When I apply this code I end up with this >

BobBon2000_0-1734861870055.png

Can any1 suggest what to do ?

I want to apply material per face/range if there were any per face materials. But every time I try it breaks maya.

 

Thanks.

0 Likes
273 Views
2 Replies
Replies (2)
Message 2 of 3

mcw0
Advisor
Advisor

I just tried it in 2023.3 with a blinn and phong and it worked fine.  Might it be the VRayMtl?  Maybe perform the process manually and check the history printout.  Then copy and paste the printout and test it to see if there are any differences.

0 Likes
Message 3 of 3

Bob.Bon2000
Collaborator
Collaborator
Hey
Yeah that what I tried. When evern I apply material by hand, and perform F9(I think for poly) and apply partial material to polygons only ( so 2+ materials on 1 object) when I run the commands I posted above they all break.
If I render I get correct render, and if I save/load scene I get correct viewpower. So it looks to be a bug in 2023.3... I'll test 2024/2025...
0 Likes