Re: [Maya-Python] Texture path

2021-07-28 Thread DGFA DAG's GRAPHIC & FOTO ART
Hi, thank you for support. I solved it in this way: def relinkBtnCmd(self, *args): #get the path specified in the text field using a query basePath = cmds.textField(self.txtFieldFolderLocation, query=True, text=True); index = cmds.textField(self.txtFieldOldFolderLocatio

Re: [Maya-Python] Texture path

2021-07-26 Thread Justin Israel
On Mon, Jul 26, 2021 at 4:19 AM DGFA DAG's GRAPHIC & FOTO ART < gerome@gmail.com> wrote: > Hi, > when I want to change the texture path I struggle on one point. > Let say the path is now > project/create/Maya/sourceimages/room/texture.exr > There could be a deeper sub folder structure like > p

[Maya-Python] Texture path

2021-07-25 Thread DGFA DAG's GRAPHIC & FOTO ART
Hi, when I want to change the texture path I struggle on one point. Let say the path is now project/create/Maya/sourceimages/room/texture.exr There could be a deeper sub folder structure like project/create/Maya/sourceimages/light/exr/light.exr etc. How can replace the path just to sourceimages