Announcement

Collapse
No announcement yet.

Vray / Python - odd shape node behavior when renaming

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

  • Vray / Python - odd shape node behavior when renaming

    Heya

    I have a little problem. I'm writing a script where it will create a render layer per light and rename it but the way light renaming works is a bit odd.

    Here is the problem.

    If I have maya Area light and rename it to Light

    I will have
    Transform node : Light
    Shape node : LightShape

    With vray lights I get this
    Transform node : Light
    Shape node : Light

    Now I try to specify shape node or transform but none of it work I always get an error ValueError: More than one object matches name: VL__gfsdagh #

    any chance to get it tweaked for next nightly? :s so its nameShape.

    thanks, bye.
    CGI - Freelancer - Available for work

    www.dariuszmakowski.com - come and look

  • #2
    Originally posted by DADAL View Post
    Heya

    I have a little problem. I'm writing a script where it will create a render layer per light and rename it but the way light renaming works is a bit odd.

    Here is the problem.

    If I have maya Area light and rename it to Light

    I will have
    Transform node : Light
    Shape node : LightShape

    With vray lights I get this
    Transform node : Light
    Shape node : Light

    Now I try to specify shape node or transform but none of it work I always get an error ValueError: More than one object matches name: VL__gfsdagh #

    any chance to get it tweaked for next nightly? :s so its nameShape.

    thanks, bye.
    It is a Maya error, not Vray.
    You already have a light with the name "Light". It is why you have this error.
    www.deex.info

    Comment


    • #3
      Originally posted by DADAL View Post
      Heya

      I have a little problem. I'm writing a script where it will create a render layer per light and rename it but the way light renaming works is a bit odd.

      Here is the problem.

      If I have maya Area light and rename it to Light

      I will have
      Transform node : Light
      Shape node : LightShape

      With vray lights I get this
      Transform node : Light
      Shape node : Light

      Now I try to specify shape node or transform but none of it work I always get an error ValueError: More than one object matches name: VL__gfsdagh #

      any chance to get it tweaked for next nightly? :s so its nameShape.

      thanks, bye.
      It is a Maya error, not Vray.
      You already have a light with the name "Light". It is why you have this error.
      www.deex.info

      Comment

      Working...
      X