Announcement

Collapse
No announcement yet.

Expression crashing maya

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

  • Expression crashing maya

    Genuinely not sure if this is Maya or Vray causing the crash, but posting here in case anyone else has experience of it.

    I'm using an expression to control the line width of a toon shader, so the thickness is the same regardless of DPI changes. The expression bases the line width as a fraction of the pixel width of the rendered image.

    ie:
    Code:
    VRayToon3.lineWidth=(vraySettings1.width * 0.0041);
    this works perfectly for what I need. Or ..did work perfectly for my previous project
    Now if I try to change the expression value I get an instant maya crash every time. .. Any suggestions are most welcome (!)

  • #2
    It you do it without expression, like connect the vraySettings1.width to a multiply/divide, and set the multiply/divide to 0.0041, and connect it to the VRayToon3.lineWidth ?
    www.deex.info

    Comment


    • #3
      The V-Ray settings node is normally named vraySettings and not vraySettings1

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

      Comment


      • #4
        Originally posted by bigbossfr View Post
        It you do it without expression, like connect the vraySettings1.width to a multiply/divide, and set the multiply/divide to 0.0041, and connect it to the VRayToon3.lineWidth ?
        Wow.. Superb suggestion, and a different way of thinking for me. It works perfectly, thank you

        And thank you Vlado - my bad for not double checking typo's when asking for help. vraySettings is correct of course

        Comment

        Working...
        X