Is there any way to exclude children using styling maybe? For example, I can set the opacity of all excluded children to 0, then they won’t appear in the image. The problem is that it’s noticeable by the user. There might be a similar way to do that without the user to notice?
You can hide any nodes by setting their “visible” property to false prior to creating the rendition:
Of course that would edit the document, so the nodes being edited would need to be part of the edit context (for example the user would need to double-click on the parent artboard). It would be noticeable to the user (but very fast) to hide nodes you want to exclude, create the rendition, then make those nodes visible again, all within one editDocument() operation.