Announcement

Collapse
No announcement yet.

Scripting the importing of vrscene files?

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

  • 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.

  • #2
    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:

    Code:
    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:
    Code:
    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.
    Alex Yolov
    Product Manager
    V-Ray for Maya, Chaos Player
    www.chaos.com

    Comment

    Working...
    X