Forum: Blender


Subject: Blender Python Shader (Cycles) Automation

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


RobynsVeil posted Tue, 10 November 2015 at 3:27 PM

Thanks, chaecuna. I'm actually struggling with exactly that (the data file path, to be exact). The script needs to be os-agnostic, so it's been suggested on stack.exchange to use relative paths, and also, to select just the data file itself (I've decided on .csv for the sake of simplicity: can be opened with a text editor or spreadsheet by users and is easy to sort out what's doing what) which could contain a fully-qualified path statement, I suppose. The csv looks as follows, currently:

FieldName, ImageName
"clrALimb", "Syri_Limbs.jpg"
"clrLLimb", "Syri_Limbs.jpg"
"bmpALimb", "Syri_LimbsB.jpg"
"bmpLLimb", "Syri_LimbsB.jpg"
"spcALimb", "Syri_LimbsS.jpg"
"spclLimb", "Syri_LimbsS.jpg"
"clr_Body", "Syri_Torso.jpg"
"bmp_Body", "Syri_TorsoB.jpg"
"spc_Body", "Syri_TorsoS.jpg"
"clr_Face", "Syri_Face.jpg"
"bmp_Face", "Syri_FaceB.jpg"
"spc_Face", "Syri_FaceS.jpg"
"clr_Eyes", "EyesHazel.jpg"
"clrMouth", "Syri_Teeth.jpg"
"bmpMouth", "Syri_TeethB.jpg"
"clr_Lash", "BaseLashes05.png"

...and is stored with the image files. All this can be re-thought, though. 😏

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