

def attach_texture(self, material, stage, filename):
    'Attach an image and linked parameter to the effect of the JSON representation.'
    assert (material in self.asset['materials'])
    file_link = self.attach_image(filename)
    LOG.debug('material:%s:parameters:%s:%s', material, stage, filename)
    self.asset['materials'][material]['parameters'][stage] = file_link

dataset/ETHPy150Open turbulenz/turbulenz_tools/turbulenz_tools/tools/asset2json.py JsonAsset.attach_texture/original