Re: [Maya-Python] is it possible to not show the error --> # Error: Non-deletable node

2021-08-22 Thread Rudi Hammad
of course! that is must simpler! thanks. El domingo, 22 de agosto de 2021 a las 9:29:46 UTC+2, Marcus Ottosson escribió: > My first go-to would be to try cmds.file(new=True, force=True) instead of > cmds.delete(), does that work for you? > > On Sun, 22 Aug 2021 at 03:09, Rudi Hammad wrote: >

Re: [Maya-Python] is it possible to not show the error --> # Error: Non-deletable node

2021-08-22 Thread Marcus Ottosson
My first go-to would be to try cmds.file(new=True, force=True) instead of cmds.delete(), does that work for you? On Sun, 22 Aug 2021 at 03:09, Rudi Hammad wrote: > Hi, > this might seem an odd question, but I was wondering if it is possible to > make maya's IDE not showing the error message

[Maya-Python] is it possible to not show the error --> # Error: Non-deletable node

2021-08-21 Thread Rudi Hammad
Hi, this might seem an odd question, but I was wondering if it is possible to make maya's IDE not showing the error message when you try to delete an undeletable node. The reason is than when running unitests, sometimes clean the scene wiht cmds.delete("*"), causing a cascade of # Error: