Is there any way to access whole scene data

I want to put the scene.(mostly model and texture) to the optix for rendering, but I seems that only way to do that is modifie the source code. Can anyone tell me how to access these data.Thanks