Announcement

Collapse
No announcement yet.

Pass custom data

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

  • Pass custom data

    Hey!
    Is it possible to pipe custom data to the translated vrayScene? I tried making a dummyobject, but the user attributes didn't get translated. Is there another way to send some 'annotations' or blind data with the scene?
    Thanks!

  • #2
    The answer to that question depends on how you want to use that data during the rendering. If you just want some text to appear in the .vrscene file, you can use the post-translate Python callback to create some V-Ray plugin like a Node and assign a value to its "user_attributes" parameter.

    Best regards,
    Vlado
    Last edited by vlado; 06-02-2012, 09:57 AM.
    I only act like I know everything, Rogers.

    Comment


    • #3
      That should work, thanks. But that way I'll have to create a plugin for each parameter i want to pass, right?
      What I want to do is create a node in the maya scene in which I can enter additional vray settings, that are not exposed by now (like the stereo stuff). Then find that values with python and 'translate' it to the appropriate vray settings. So - not very important, but could come in handy sometimes.

      BTW: What goes into a vray user attribute? In maya only floats?
      Last edited by pechart; 07-02-2012, 02:32 AM.

      Comment


      • #4
        Originally posted by pechart View Post
        That should work, thanks. But that way I'll have to create a plugin for each parameter i want to pass, right?
        It depends; the user attribute is a string so you can dump anything into it. F.e. you could separate things with ';' or something.

        BTW: What goes into a vray user attribute? In maya only floats?
        The original design is for this to be a list of ';'-separated values (floats, colors or strings). You can then use these in a number of places - for example in the VRayUserColor and VRayUserScalar textures, or in file names for File nodes.

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

        Comment


        • #5
          Ok, thanks. I wasn't aware that I have to create the attr with 'vrayAddAttr'.

          Comment

          Working...
          X