Announcement

Collapse
No announcement yet.

VFB on MacOSX

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

  • VFB on MacOSX

    Im curious to find out if the VFB has been fixed to work in OSX in the newer builds of Vray? I've been using the hack provided in the docs, but am having a multitude of problems by calling it this way. Im no mel scripter, so this could be failing on my part in customizing it to own environment. Below is a list of the more notable problems.

    The Script:
    $tmpfile
=
"/var/tmp/tmp.vrscene";
    setAttr
vraySettings.vrscene_render_on
0;
    setAttr
vraySettings.vrscene_on
1;
    setAttr
-type
"string"
vraySettings.vrscene_filename

    $tmpfile;
    renderIntoNewWindow
render;
    removeRenderWindowPanel
renderView;
    system
("/Applications/Autodesk/maya2008/Maya.app/
    Contents/vray/bin/vray

-scenefile=\""
+
$tmpfile
+
"\"
&");
    system
("rm
"
+
$tmpfile);

    1. When executed, occasionally the VFB will render a completely unrelated scene that i've worked on previously. I assume this is because its linking to an old .vrscene and in fact, if I go into the folder its being written to, I can see a multitude of old .vrscene files floating about. The way im interpreting this script is that it writes a temp .vrscene, renders it, then deletes it. Why this only works sometimes is beyond me.

    2. The store image button is missing when the VFB pops up.

    3. The maya framebuffer pops up before executing the VFB and fails to close, which from the code it looks like it should do. Also, you have to close the VFB in order to get back to working in maya which is an annoyance.

    Im posting this here in hopes that someone can better educate me on why I am experiencing these problems, or, better yet, post an improved version of this "hack."

    Thanks in advance.

  • #2
    We will be able to implement the V-Ray VFB inside the next version of Maya, but not for Maya 2010 and older, unfortunately.

    As far as the script goes, it always creates a .vrscene file with the same name (tmp.vrscene), so I'm not sure where the other .vrscene files come from... how are they named?

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

    Comment


    • #3
      Thanks for responding Vlado. Its good to know ill be able to use the VFB in the next version as I much prefer it to Maya's Framebuffer.

      To answer your question, it appears as if its taking on the name of the render layer. For example...tmp_masterLayer.vrscene or tmp_layer1.vrscene. There is also a tmp.vrscene as one would expect.

      Comment


      • #4
        Yep, the layer name is appended to the end of the vrscene file name. This way you can export all layers simultaneously and they'll get written to different vrscene files. You can easily fix your code by changing the system call to :

        string $realName=vrayTransformFilename($tmpfile, "", "");
        system
("/Applications/Autodesk/maya2008/Maya.app/
        Contents/vray/bin/vray

-scenefile=\""
+
$realName+
"\"
&");
        system
("rm
"
+
$realName);

        Greetings,
        Vladimir Nedev
        Vantage developer, e-mail: vladimir.nedev@chaos.com , for licensing problems please contact : chaos.com/help

        Comment


        • #5
          Ill give this a try tomorrow at work Vladimir. Thanks for getting back to me so quickly.

          Comment

          Working...
          X