Script for Keyshot 7.2 not loading materials.

Started by jpits11, April 16, 2018, 12:01:25 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jpits11

Hi All,

I have a main script file to load materials from a main a confs.py file. When I use on mac for keyshot 6 it loads the 3D object and applies the materials. However in Keyshot 7.3 for Windows, it loads the 3d object and renders but it doesn't apply materials.

This is how I call it from the main script:

def get_opts():

from confs import opts
    return opts



And this is the conf.py file:

opts = {
"conf_file": "C:\\Users\\jmartinez\Desktop\\FirstTest\\ksfile\\SampleScene4.bip",
    "i_folder": "C:\\Users\\jmartinez\Desktop\\FirstTest\\input",
    "o_folder": "C:\\Users\\jmartinez\Desktop\\FirstTest\\output",
    "oext": "png",
    "width": 800,
    "height": 600,
    "material_sets": [
        {
            "gem_first_material": "GemStoneDiamond",
            "gem_sec_material": "GemStoneDiamond",
            "gem_third_material": "GemStoneDiamond",
            "head_first_material": "Stainless Steel Radial Brushed",
            "head_sec_material": "Copper Polished",
            "head_third_material": "Gold 24k Polished",
            "body_first_material": "Gold 24k Polished",
            "body_sec_material": "Gold 24k Polished",
            "body_third_material": "Gold 24k Polished",
        },
    ],
    "queue": True,
    "process": True,
}
     

The Gem, Head and Body are the parts of the 3D file.
The names of the materials on the right are the materials on the keyshot library.
I tried everything, even writing the path to the materials for but still I get a black piece on the renders. I also tried typing the material's file extension such as "GemStoneDiamond.mtl"

Any solution for this?