Announcement

Collapse
No announcement yet.

New Script for changing properties of Vray Materials

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

  • #31
    Hi all,

    I'm getting a few emails from people having trouble with the VMC script in Max 2013. However everyone's problems are slightly different and I'm unable to reproduce them all.

    I'll get it working for the next VMC release, so if you are having any problems at all (or have any feature requests or suggestions) please feel free to reply here or email me: vmc@foundationcgi.com

    Btw, @3ddesign: The property you are trying to change is actually not part of the VMC script. It only works on true material properties, the material ID (FX ID) is just a shell property. Sorry for the really slow reply, I must not have clicked through on an old email so wasn't receiving notifications of replies!

    Cheers,
    Olly
    Last edited by olly; 11-09-2012, 12:35 PM.
    Set V-Ray class properties en masse with the VMC script
    Follow me for script updates: @ollyspolys

    Comment


    • #32
      Much appreciated Olly, thanks.

      On my 2013 installation, it seems that applying changes to 'scene materials' doesnt work, but to 'material editor slots' does work.

      Could you also increase the integer limit from 200 to something higher (i already figured out how to edit the script myself but might be handy for others)
      www.peterguthrie.net
      www.peterguthrie.net/blog/
      www.pg-skies.net/

      Comment


      • #33
        It mostly works here on 2013. The problem I have is that I constantly have to "re-install it" after closing max. I've added the script as menu command, but when I shut down and reboot and want to use it, it says there where it's suppose to be in the menu "VCM not found"
        Kind Regards,
        Morne

        Comment


        • #34
          same problem as Morne.
          Check my blog

          Comment


          • #35
            Ok so I can reproduce the Quad menu bug. Can you anyone experiencing this let me know:

            1. Can you tell me if useUserProfiles=1 or 0 in the file installsettings.ini? (C:\Program Files\Autodesk\3ds Max Design 2013\installsettings.ini)
            2. Can you also check if adding VMC as a button to a toolbar sticks after restarting max?
            3. Enter the following in the mini listener and hit numpad enter:
              Code:
              getdir #usermacros
              Let me know the output, masking your username if included.

            @
            peterguthrie: will do on the max integer value.

            Cheers,
            Olly
            Set V-Ray class properties en masse with the VMC script
            Follow me for script updates: @ollyspolys

            Comment


            • #36
              If I may a couple of suggestions for the script to future proof it further (once you've solved these bugs)....

              You can get the list of Vray materials using...

              for m in material.classes where matchpattern (m as string) pattern:"Vray*" do print m

              and get the list of Vray Maps using....

              for m in textureMap.classes where matchpattern (m as string) pattern:"Vray*" do print m


              You have a long function to get the sub materials of Multimaterials, VrayBlends etc... requiring you to list all cases,

              You can use a much simpler,

              getNumSubMtls()

              GetSubMtl()

              Similarly with Maps...

              getNumSubTexmaps()

              getSubTexmap()


              Dave
              Maxscript made easy....
              davewortley.wordpress.com
              Follow me here:
              facebook.com/MaxMadeEasy

              If you don't MaxScript, then have a look at my blog and learn how easy and powerful it can be.

              Comment


              • #37
                Thanks for that Dave. I have actually done something similar in the next release, just waiting to iron out the 2013 bugs before I release it!

                Cheers,
                Olly
                Set V-Ray class properties en masse with the VMC script
                Follow me for script updates: @ollyspolys

                Comment


                • #38
                  Right I've fixed this now, look out for an all new version in the near future!
                  Set V-Ray class properties en masse with the VMC script
                  Follow me for script updates: @ollyspolys

                  Comment


                  • #39
                    good work!
                    www.peterguthrie.net
                    www.peterguthrie.net/blog/
                    www.pg-skies.net/

                    Comment


                    • #40
                      Originally posted by Dave_Wortley View Post
                      You can get the list of Vray materials using...

                      for m in material.classes where matchpattern (m as string) pattern:"Vray*" do print m
                      Sorry Dave, I missed this gem first time around, work was manic today. Thanks for the great tip!

                      Cheers,
                      Olly
                      Set V-Ray class properties en masse with the VMC script
                      Follow me for script updates: @ollyspolys

                      Comment


                      • #41
                        Thanks a lot Olly
                        Check my blog

                        Comment


                        • #42
                          Originally posted by olly View Post
                          Sorry Dave, I missed this gem first time around, work was manic today. Thanks for the great tip!

                          Cheers,
                          Olly
                          I'm learning these sort of tricks all the time, Your script gave me a really good idea for a script which allows you on mass or on selection to change a property of just about anything in max!
                          Maxscript made easy....
                          davewortley.wordpress.com
                          Follow me here:
                          facebook.com/MaxMadeEasy

                          If you don't MaxScript, then have a look at my blog and learn how easy and powerful it can be.

                          Comment


                          • #43
                            That's sort of how VMC 2.0 is going to work, hope their isn't too much cross over!
                            Set V-Ray class properties en masse with the VMC script
                            Follow me for script updates: @ollyspolys

                            Comment


                            • #44
                              OK, so I'm 99% there with version 2.0, just ironing out a few semantics.

                              I'd like to run a little beta test so if you anyone is interested, let me know, and I will send you a pre-release version.

                              Cheers,
                              Olly
                              Set V-Ray class properties en masse with the VMC script
                              Follow me for script updates: @ollyspolys

                              Comment


                              • #45
                                Sent you a PM.

                                D
                                Maxscript made easy....
                                davewortley.wordpress.com
                                Follow me here:
                                facebook.com/MaxMadeEasy

                                If you don't MaxScript, then have a look at my blog and learn how easy and powerful it can be.

                                Comment

                                Working...
                                X