Announcement

Collapse
No announcement yet.

(open) [HOU-4609] getattribute osl function

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

  • (open) [HOU-4609] getattribute osl function

    Is the `getattribute` osl function supported in VRay for Houdini? I am trying to use it to access uv sets, e.g., "uv", "uv2", "uv3" -> "uv8". But I can't get it to work.

    Here is an example of how I am trying to use it:

    Click image for larger version  Name:	image.png Views:	20 Size:	26.0 KB ID:	1224357

    In this example, `getattribute` can't find the geometry attribute and always returns 0​.

    I have tried "uv7" and "primvars:uv7". Any advice?

    Otherwise if there are other methods to access uv sets in osl, I am welcome to suggestions!

    Many thanks,
    Jake
    Last edited by matthias_buehler; 09-01-2025, 01:36 AM.

  • #2
    To be clear. I am specifically trying to access uv sets using OSL. I know there are VRay nodes that can do it, but I am specifically looking to do it using OSL.

    Comment


    • #3
      Some more information:
      I am using Houdini 20.5 with VRay 6.20.24.

      Comment


      • #4
        Try using uppercase (e.g. UV7). If this won't work could you please us an example scene?
        V-Ray For Houdini | V-Ray Hydra Delegate | VRayScene
        andrei.izrantcev@chaos.com
        Support Request

        Comment


        • #5
          Hey Andrei, thanks for your suggestions, unfortunately it didn't work for me. I'm attaching an example scene where I try to access a geometry attribute. The TexUserScalar node finds the attribute just fine, but getattribute fails. I tried in obj and stage, but neither worked for me.

          I tried uploading the hip file as an attachment, but it kept failing, I hope this link is okay: getattribute_example.hip

          Many thanks

          Comment


          • #6
            matthias_buehler sorry for the delay, the fix is currently under review, I hope it'll make its way into the builds this week.
            V-Ray For Houdini | V-Ray Hydra Delegate | VRayScene
            andrei.izrantcev@chaos.com
            Support Request

            Comment

            Working...
            X