Announcement

Collapse
No announcement yet.

Batch import texture maps to materials

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

  • Batch import texture maps to materials

    Hey is there anyway to batch import several texture maps and create separate materials for each map? I do a good bit of products on shelves which requires creating many mapped materials. I have used scripts before in another program that allowed this. Thanks!
    Let there B3D

    Steven Houtzager
    Intuitionusa.com
    3D Renderings & Animations for Product Development and Retail Design - Atlanta, GA

  • #2
    Steven,

    This is something we can look into.

    What languages have you scripted in before?
    Best regards,
    Matt Newberg
    Software Developer

    Chaos Group

    Comment


    • #3
      Nada scripting, sorry.
      Let there B3D

      Steven Houtzager
      Intuitionusa.com
      3D Renderings & Animations for Product Development and Retail Design - Atlanta, GA

      Comment


      • #4
        Attached is a quick and dirty Python script to open a folder an jpegs and duplicate the default material with each jpeg in the folder in the diffuse.
        folderImport.zip

        In order to get this to work.
        Delete DefaultMaterial.
        Open Attached DefaultMaterial.vrmat
        Run the command RunPythonScript, and select the folderImport.py
        Select folder full of jpegs

        You should see a bunch of new materials named DefaultMaterial1 throught N
        Best regards,
        Matt Newberg
        Software Developer

        Chaos Group

        Comment


        • #5
          Wow that works fairly well! Thanks. It places all of the jpegs but they don't all render out for some reason. Have to reload them. This saves me time!!

          update. I tried a new folder of jpegs and all of them preview just fine..... maybe because my jpegs were created on a Mac.

          update 2. Ok Ok, I need to keep the folder with "just" jpegs and it works FINE!!
          Last edited by SHoutzager; 03-04-2015, 07:25 AM.
          Let there B3D

          Steven Houtzager
          Intuitionusa.com
          3D Renderings & Animations for Product Development and Retail Design - Atlanta, GA

          Comment

          Working...
          X