Announcement

Collapse
No announcement yet.

Any scripter got spare 10 min ?

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

  • Any scripter got spare 10 min ?

    Heya

    I got a big favor to ask some cool scripter... Basically can some1 (plox) make a simple script that can move my diffuse texture to > self-Illumination > and Bump ? (with possible value for bump to specify...or fix 50) for selected objects...

    I got 1000 objects/1000 shaders.... its around 5k click to get it done -.-

    Its standard material, not vray...

    Plzzzzzzzzz

    Thanx
    CGI - Freelancer - Available for work

    www.dariuszmakowski.com - come and look

  • #2
    Here we go:
    Code:
    matList = for o in selection where o.material != undefined collect o.material
        
    for m in matList do (
        if (classof m == Standardmaterial) then (
            m.selfIllumMap = m.diffuseMap
            m.bumpMap = m.diffuseMap
            m.bumpMapEnable = true
            m.bumpMapAmount = 50 -- set it to whatever you need        
        )
    )
    Paste it into a new script window and evaluate all (Ctrl + E)

    Comment


    • #3
      BTW, better test it with a few objects first.

      Comment


      • #4
        Love, thanx ! Will do quick test later on !
        CGI - Freelancer - Available for work

        www.dariuszmakowski.com - come and look

        Comment


        • #5
          Good, let me know if it works fine

          Comment


          • #6
            It works ! It is absolutley amazing !!!

            Btw if u can by any chance tell me how can I list all the functions that I can get off material/and other stuff, is there a command or manual ? I might try to learn some basic scripting o.o
            CGI - Freelancer - Available for work

            www.dariuszmakowski.com - come and look

            Comment


            • #7
              In 3dsmax press F11 for MaxScript Listener.
              Select an Object and typ in

              show $

              this shows you the properties of the selected Objekt.

              show $.material

              shows you the properties of the selected Object Material.

              You can find the maxscript manual in 3dsmax-Menu under Help or here:

              http://usa.autodesk.com/adsk/servlet...&siteID=123112

              Comment


              • #8
                yep, "show" helps a lot while scripting.

                dlparisi did post about some great video series for getting started into MaxScript:
                http://www.chaosgroup.com/forums/vbu...AXscript-Intro....

                Comment

                Working...
                X