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 <rudih...@gmail.com> 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 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: Non-deletable node, which >> is a bit annoying. >> >> Cheers. >> >> R >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Python Programming for Autodesk Maya" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to python_inside_m...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/python_inside_maya/f960c514-f7c1-4ca0-9334-3ed56e41982dn%40googlegroups.com >> >> <https://groups.google.com/d/msgid/python_inside_maya/f960c514-f7c1-4ca0-9334-3ed56e41982dn%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/bbd6db1a-32bd-4cc4-acde-8ba6114edb2fn%40googlegroups.com.