Results 1 to 1 of 1

Thread: shader parameters change and compatibility with old Maya scene

  1. #1
    Join Date
    May 2011
    Posts
    23

    Default shader parameters change and compatibility with old Maya scene

    I noticed this problem since I wrote my first mental ray shader...

    If I have 2 color attribute in my shader (named "r" and "b" with black default values) and I save a Maya scene setting them to red and blue values, and then I add a new color attribute ("g") between r and b and I re-open the scene the new color g (located in 2nd attr in the list) take the blue values, previously assigned to the "b" attr and the b attr become black.

    I also tried changing the version in both cpp and mi files but the problem remains. Is there a way to fix it or I need to add the new parameter at the end of the struct and then bring it up using AETemplate?

    I can not find anything about this issue...

    Thanks
    Last edited by maradona; November 3rd, 2013 at 19:09.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •