Results 1 to 2 of 2

Thread: check for mental ray shader version by script

  1. #1
    Join Date
    Jun 2012
    Location
    Germany / Munich
    Posts
    39

    Default check for mental ray shader version by script

    Hi Guys,

    I have got the job to check at any of our workstations
    which mental Ray shader-version has been installed.
    Some users have changed there shaders, and now I have to check
    which ones are installed and what version they got.


    Does any one of you has done a similar job and can give me a tip what is important to think of?
    How important is the .mi and .dll – version of the mental ray – shader?
    I have seen that in the .mi file we have a note like:

    Code:
    …
    # Version 10.8
    
    min version "3.6.0.6"
    max version "3.10.99"
    …
    What is it about and how can I use it?

    Thanks for any given tip!

    Cheers,

    5inch
    ...It isn’t about how hard you hit, it's about how hard you can get hit and keep moving forward. How much can you take and keep moving forward? That's how winning is done.----Rocky Balboa

  2. #2
    Join Date
    Jun 2012
    Location
    Germany / Munich
    Posts
    39

    Default

    Hi Folks,

    i got something,
    Code:
    import filecmp 
    
    dir1 = 'D:\\data\\dir_cmp\\shaders_3_8'
    dir2 = 'D:\\data\\dir_cmp\\shaders_3_10_1'
    
    listToCmp = filecmp.dircmp(dir1, dir2)
    
    print 'Common: ', listToCmp.common
    print 'Directories: ', listToCmp.common_dirs
    print 'Files: ', listToCmp.common_files
    print 'Same: ', listToCmp.same_files
    print 'Different: ', listToCmp.diff_files
    now I have to check for the version status…
    ...It isn’t about how hard you hit, it's about how hard you can get hit and keep moving forward. How much can you take and keep moving forward? That's how winning is done.----Rocky Balboa

Posting Permissions

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