Scripting the importing of vrscene files?

Hi, is it possible to script the importing of vrscene files?

The listener/script editor doesn’t show anything happening after loading the VraySceneManager.

I’m looking to be able to attach a few vrscene files into one Maya scene.

Thanks for any info.

We don’t have script access per se for this, but you can use the function that the vrsceneManager window calls to create the object:

vrayVRaySceneCreateNode(string $filePath, int $flipAxis);

where $filePath is a string that needs file_path/filename.extension and $flitAxis is an integer value with a 0-2 range (0 means don’t flip, 1 means flip, 2 means “auto” - i.e. let vray try to guess).
Here’s an example: vrayVRaySceneCreateNode("C:/Users/yolov/Desktop/cube.vrscene", 0)
And a few notes:
1. the filepath needs to be in quotes
2. the file path needs to use forward slashes

Hope that helps.