Forum: Blender


Subject: Blender Python Shader (Cycles) Automation

RobynsVeil opened this issue on Oct 18, 2015 · 32 posts


RobynsVeil posted Sun, 01 November 2015 at 2:32 PM

So, like I've put this into the folder that contains the texture files for my V4 figure:

class imageDict():
    def __init__(self):
        self.dictMaps = {}
        self.listMaps()
        
    def listMaps(self):
        dictMaps = {
            'clrALimb': 'Syri_Limbs.jpg',
            'clrLLimb': 'Syri_Limbs.jpg',
            'bmpALimb': 'Syri_LimbsB.jpg',
            'bmpLLimb': 'Syri_LimbsB.jpg',
            'spcALimb': None,
            'spclLimb': None,
            'clr_Body': 'Syri_Torso.jpg',
            'bmp_Body': 'Syri_TorsoB.jpg',
            'spc_Body': None,
            'clr_Face': 'Syri_Face.jpg',
            'bmp_Face': 'Syri_FaceB.jpg',
            'spc_Face': None,
            'clr_Eyes':  'EyesMochachino.jpg',
            'clrMouth': 'Syri_Teeth.jpg',
            'clr_Lash': 'BaseLashes05.png',
        }

...and saved it as imageList.py. The bit that needs to be edited by the user starts on line 8. Does this all look a bit too complicated for end users? 😨

Monterey/Mint21.x/Win10 - Blender3.x - PP11.3(cm) - Musescore3.6.2

Wir sind gewohnt, daß die Menschen verhöhnen was sie nicht verstehen
[it is clear that humans have contempt for that which they do not understand] 

Metaphor of Chooks