Loading a model from a string

Is there a way to load an egg model from a string containing the model text using egg syntax instead of using a filename? We could create a temporary .egg file and then load it but i’m curious if this is possible to do directly.

Try this:

egg = EggData()
model = NodePath(loadEggData(egg))


That’s cool. Thanks.