Hello, not sure if this is a bug or what but here is an example:
const config = new Communicator.LoadSubtreeConfig()
config.attachInvisibly = true
const hid = (await model.loadSubtreeFromScsFile(parent, "whatever/url", config))[0]
// this returns true, even though the node was loaded invisibly, and you can't see it in the scene.
const visibility = await model.getNodeVisibility(hid)
In the interest of affecting the fewest number of nodes, the visibility is toggled only on the deepest leaf nodes. This would be helpful in the event that you need to keep default values for certain subassemblies. Also, changing the leaf node visibility is consistent with how setting visibility is normally done via in the Web Viewer through a selection operation.