Announcement

Collapse
No announcement yet.

addSceneContent() without adding render settings

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • addSceneContent() without adding render settings

    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:

    Code:
    addSceneContent( 'c:/myProj/objA/objA_0001.vrscene' )
    addSceneContent( 'c:/myProj/objB/objB_0001.vrscene' )
    addSceneContent( 'c:/myProj/objC/objC_0001.vrscene' )
    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:

    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' )
    ...
    ...
    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() ?

  • #2
    There seems to be an issue with the batch render and we'll look into it.

    For loading the separate scenes, you should use the appendSceneContent() call; the addSceneContent() function loads each scene in its own namespace, so the different components are loaded separately and no connection can be made between i.e. the nodes and their geometry. The appendSceneContent() loads all plugins in the namespace of the main scene so there should be no isses.

    Not sure why this is not in the help index, will make sure to add it.

    Best regards,
    Vlado
    I only act like I know everything, Rogers.

    Comment


    • #3
      Thank you Vlado! appendSceneContent() works on my component vrscenes without issue, both in VFB and batch render!

      I've tried that on unseparated vrscenes also, but nothing is rendered out for my render layers. In the output vrscenes, I found that the render setting plugin nodes from my pre-gen vrscenes are appended also.

      Is it not possible to handle unseparated vrscenes? Or is there any other convenient way to handle unseparated vrscenes? Since I prefer not to separate the vrscenes for better version control of my data.

      Comment


      • #4
        You'll have to delete the settings from the .vrscene - I'm not sure what would be a better way to handlle this.

        Best regards,
        Vlado
        I only act like I know everything, Rogers.

        Comment

        Working...
        X