[Maya-Python] Multiple optionMenu lists working with one directory problem

2021-06-22 Thread Anastasia Korol
Hi guys! I am doing simple UI for choosing textures for two nodes in the shader and I can't make the optionMenu command to work one by one with the same source for the both optionMenu1 and optionMenu2. I have one directory to choose and need two similar lists where user can choose the texture

Re: [Maya-Python] Shader texture file not found

2021-06-16 Thread Anastasia Korol
ectAttr(fMask+'.outFloat', shd+'.outTransparencyR') > mc.connectAttr(fMask+'.outFloat', shd+'.outTransparencyG') > mc.connectAttr(fMask+'.outFloat', shd+'.outTransparencyB') > #assign to mesh > mc.select(name,r=True) > mc.sets(forceElement=shdSg,e=True ) > > st 16. 6. 2021

Re: [Maya-Python] Shader texture file not found

2021-06-16 Thread Anastasia Korol
/, Windows is OK with that syntax. > You can also remove the parentheses since they are not needed. > > There might be other issues with your snippet, but this is definitely one > of them. > > On Wed, 16 Jun 2021 at 06:23, Anastasia Korol > wrote: > >> Hi guys! I am begin

[Maya-Python] Shader texture file not found

2021-06-15 Thread Anastasia Korol
Hi guys! I am beginner in Python and need a little bit of help with locating a path for texture file in Maya. It is a lambert shader with layered texture node and 3 texture files which I need to define. Hopefully it is the right chat to seek for help with such a noob question. The shader