There is an undocumented plugin that allows changing the name of underlying scene graph nodes. Here is sample code showing how to name groups nodes using it:
Code:
# Load extension
osg = viz.add('SceneGraphTools.dle')
# Set name of group node
group = viz.addGroup()
osg.getRootNode(group).setName('MyGroup')
Regarding saving out OSGB files with images, you can use the following options to have it save the images to file or reference existing image files:
Code:
"""
OSGB options:
WriteImageHint=<hint>
IncludeData - embed image data
IncludeFile - embed image file
UseExternal - reference existing external file
WriteOut -writes image to external file
"""
viz.res.setFileLoaderOption('WriteImageHint=IncludeData')
model.save('model.osgb')