The gameFbxExporter 'gameExporterPreset1' has no '.ich' attribute.

39 views
Skip to first unread message

Utkarsh Agnihotri

unread,
Nov 15, 2023, 8:48:35 AM11/15/23
to Python Programming for Autodesk Maya
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?

Juan Moraga

unread,
Nov 15, 2023, 9:14:26 AM11/15/23
to python_in...@googlegroups.com
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)

--
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/383c508b-eea5-4999-a0b6-ae732decb06an%40googlegroups.com.


--
Juan Moraga
Supervising Pipeline & Technical Direction @ MondoTV

Portfolio: https://juanmoraga.dev
LInkedin: https://www.linkedin.com/in/juanmoragamartin/

Utkarsh Agnihotri

unread,
Nov 15, 2023, 9:19:04 AM11/15/23
to python_in...@googlegroups.com
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.

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_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CA%2BKy2f0CE9ccFpOTpoTQ835pxhnk6TQurFwgjcUEHceXAOioTA%40mail.gmail.com.


--
Kind regards,
Utkarsh Agnihotri

Marcelo

unread,
Nov 15, 2023, 10:59:16 AM11/15/23
to Python Programming for Autodesk Maya
Can you send us the error message you’re getting? That would help narrow down why you’re getting whatever error you’re getting.
Reply all
Reply to author
Forward
0 new messages