1
Substance Automation Toolkit - Product Support - Re: Error on sbs.writeDoc
on: June 29, 2021, 12:54:13 am
We are using 11.1.2 also.
Reproducing is as simple as the three lines in my original post. Make a doc object, parse it, write it. Something about this file triggers the bug in pysbs, since this issue has not occurred anywhere else. While I can't share the file itself I'll share my other observations:
There are 29 unique meshes linked in the file, all fbx. What I noticed is that the error would occur if any of the meshes remained in the file, save one. I deleted each mesh one by one, saved the sbs, and reran the simple parse -> write script until writeDoc() succeeded. There is a single mesh resource that can stay in the file and the error does not occur. If any other meshes exist writeDoc fails. Removing any other textures or graphs has no effect on the outcome.
To be clear, it's not that only one mesh can be in the file, it's that one specific mesh can be in it. If I leave one mesh and it's not this specific mesh, writeDoc fails again. I can't find any notable between this item and the others within the substance UI or the fbx files.
But Looking at the XML, the 'good' mesh has an oddly named package associated with it:
Followed by it's identifier & file paths.
None of the 'bad' meshes have 'pkg://' line associated with their names. Just identifiers & filepaths. I'm curious if that is relevant.
Reproducing is as simple as the three lines in my original post. Make a doc object, parse it, write it. Something about this file triggers the bug in pysbs, since this issue has not occurred anywhere else. While I can't share the file itself I'll share my other observations:
There are 29 unique meshes linked in the file, all fbx. What I noticed is that the error would occur if any of the meshes remained in the file, save one. I deleted each mesh one by one, saved the sbs, and reran the simple parse -> write script until writeDoc() succeeded. There is a single mesh resource that can stay in the file and the error does not occur. If any other meshes exist writeDoc fails. Removing any other textures or graphs has no effect on the outcome.
To be clear, it's not that only one mesh can be in the file, it's that one specific mesh can be in it. If I leave one mesh and it's not this specific mesh, writeDoc fails again. I can't find any notable between this item and the others within the substance UI or the fbx files.
But Looking at the XML, the 'good' mesh has an oddly named package associated with it:
Code: [Select]
"pkg:///Resources/goodmeshdir/goodmesh_geo_0x1F9D0D61980"
Followed by it's identifier & file paths.
None of the 'bad' meshes have 'pkg://' line associated with their names. Just identifiers & filepaths. I'm curious if that is relevant.