Hi, Thanks for the reply. It is not locked. I am able to delete it through the script editor separately but the script fails to do so when I do it in batch.
On Wed, Nov 15, 2023 at 3:14 PM Juan Moraga <juanmoragamar...@gmail.com> wrote: > Hello, > > I don't use gameFbxExporter, are those nodes created automatically by > Maya? or is this an export preset that you have been given? If those are > given,maybe the export preset is incompatible with your version. > You also have a white space here: > nodes = cmds.ls(type="gameFbxExporter ") , in case this is the actual > command you are using within maya. > > Generally if you cannot delete a node inside Maya, it tends to be because > you are not supposed to do so, be it because it is part of a reference, or > because someone locked the node. > If you want to delete that node, you can try unlocking it first: > node = "gameExporterPreset1" > cmds.lockNode(node, lock=False) > > On Wed, 15 Nov 2023 at 13:48, Utkarsh Agnihotri <utkarsh6...@gmail.com> > wrote: > >> Hi, >> I am trying to do batch export on a set of files but keep getting >> interrupted by following errors >> >> *The gameFbxExporter 'gameExporterPreset1' has no '.ich' attribute.* >> >> Nodes named gameExporterPreset1 are causing the issue. I tried to delete >> them after opening the file in script but it is failing to do so. These are >> gameFbxExporter type nodes and trying to delete them using >> >> nodes = cmds.ls(type="gameFbxExporter ") >> for node in nodes: >> cmds.select(node) >> cmds.delete(node) >> >> Has any faced same issue? >> >> -- >> 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/383c508b-eea5-4999-a0b6-ae732decb06an%40googlegroups.com >> <https://groups.google.com/d/msgid/python_inside_maya/383c508b-eea5-4999-a0b6-ae732decb06an%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > > > -- > *Juan Moraga* > *Supervising Pipeline & Technical Direction @ MondoTV* > > Portfolio: https://juanmoraga.dev > LInkedin: https://www.linkedin.com/in/juanmoragamartin/ > <http://juanmoragaart.tumblr.com/> > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Python Programming for Autodesk Maya" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/python_inside_maya/zK2mToMheq0/unsubscribe > . > To unsubscribe from this group and all its topics, 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/CA%2BKy2f0CE9ccFpOTpoTQ835pxhnk6TQurFwgjcUEHceXAOioTA%40mail.gmail.com > <https://groups.google.com/d/msgid/python_inside_maya/CA%2BKy2f0CE9ccFpOTpoTQ835pxhnk6TQurFwgjcUEHceXAOioTA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- Kind regards, Utkarsh Agnihotri -- 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/CAPCRbh_fA6akXz6CU9WaE-z%3DLHociZTX-QbEENUJBBL9hqJQmg%40mail.gmail.com.