Hi, @bghgary, and thank you for your immediate response.
My scene is not a very simple one, and the models have NDA related to them. So a PG should need serious work to be generated. Anyway, I thought the node.isEnabled was going to work. It should, isn’t It?
Maybe, having nodes with the same name, but of course in different models of the scene, is being a problem for the exporter?
I’ve realized that the problem doesn’t have to do with the disabled nodes. The GLB is indeed exported without them, and I’m able to visualize it with BJS Sandbox (by the way with a lot of severity 3 errors).
The case is that I’m using Google’s model-viewer to show that exported GLB in AR, and is that web component which is raising the exception: “TypeError: can’t access property “name”, s is undefined”, related with this line of code:
// reserve node's name before its dependencies, so the root has the intended name.
const nodeName = nodeDef.name ? parser.createUniqueName( nodeDef.name ) : '';
It’s strange, but model-viewer shows flawless my original 3d models (coming from 3d authorship), but can’t show the modified-and-exported ones (coming from BJS code).
Maybe the animation-groups, that are still in the scene, referring to not exported nodes (as they’re disabled) have something to do with it? How can I filter the animation-groups in shouldExportNode, in order to not being exported?