I can do this in Python but I didn't want to if I didn't have to as this isn't my project anyway but basically, there are images with conditionswitches and they work perfectly fine with variables in place to switch the files etc
Code: Select all
image example = ConditionSwitch(
"condition 1 etc", "images/image_[variable].png",
"condition 2", "images/image_[variable]_2.png")
But if I add an image manipulator to the image, it suddenly doesn't recognize the variable. I get an error saying "Can't find file "image_[variable].png" and I've tried %s and {} with .format() and it just tells me the variable is not defined.
Code: Select all
image example = ConditionSwitch(
"condition 1 etc", "images/image_[variable].png",
"condition 2", im.MatrixColor("images/image_[variable].png", im.matrix.brightness(-0.2)))
Is there any way to do this while keeping it all in one image definition still? If I have to resort to creating multiple images, then I'm just going the Python route.