Hi all,
I'm a newbie to V-Ray and I feel confused while making scripts to process my vrscenes.
To make more use of VRay Standalone, I plan to generate different parts of my scene as groups of vrscenes, and put them together just before rendering. So each of my render layer, I add the following codes into the Post Translate Python Script:
It works correctly when I test the render with VRay VFB. But for batch render, it doesn't render like what I expect.
I've tried outputting the vrscene to check. I found that those render setting plugin nodes of my pre-gen vrscenes are also appended, and I guess the renderer just follows the settings appended at the end. (for the above code as an example, it renders to the places defined in c:/myProj/objC/objC_0001.vrscene)
I've also tried to generate my vrscenes as separate files and calling the addSceneContent() on those component vrscenes:
And the result is, none of the vrscene content is added to my render layer, no matter I try in VFB or batch render.
How can I just add the scene contents of vrscene and ignores those render setting plugin nodes inside?
Or should I generate the vrscenes in other ways in order to adapt the function of addSceneContent() ?
I'm a newbie to V-Ray and I feel confused while making scripts to process my vrscenes.
To make more use of VRay Standalone, I plan to generate different parts of my scene as groups of vrscenes, and put them together just before rendering. So each of my render layer, I add the following codes into the Post Translate Python Script:
Code:
addSceneContent( 'c:/myProj/objA/objA_0001.vrscene' ) addSceneContent( 'c:/myProj/objB/objB_0001.vrscene' ) addSceneContent( 'c:/myProj/objC/objC_0001.vrscene' )
I've tried outputting the vrscene to check. I found that those render setting plugin nodes of my pre-gen vrscenes are also appended, and I guess the renderer just follows the settings appended at the end. (for the above code as an example, it renders to the places defined in c:/myProj/objC/objC_0001.vrscene)
I've also tried to generate my vrscenes as separate files and calling the addSceneContent() on those component vrscenes:
Code:
addSceneContent( 'c:/myProj/objA/objA_0001_bitmaps.vrscene' ) addSceneContent( 'c:/myProj/objA/objA_0001_geometry.vrscene' ) addSceneContent( 'c:/myProj/objA/objA_0001_lights.vrscene' ) ... addSceneContent( 'c:/myProj/objB/objB_0001_bitmaps.vrscene' ) ... ...
How can I just add the scene contents of vrscene and ignores those render setting plugin nodes inside?
Or should I generate the vrscenes in other ways in order to adapt the function of addSceneContent() ?
Comment