HashLips / hashlips_art_engine

HashLips Art Engine is a tool used to create multiple different instances of artworks based on provided layers.
MIT License
7.17k stars 4.3k forks source link

attribute condition #1177

Open samimikawi opened 2 years ago

samimikawi commented 2 years ago

First of all thank you hashlips for the great work really helpful.

just i was wondering if possible to add a specific condition on attribute ( sorry i m not a programer if i m maybe i would discover it )

example i have : layer - ( background - Left Arm - Right Arm - Body - Head ) ballon folder not include because it is only needed in a condition the above are folder in layer

in the left arm folder have : pic1.png , pic2.png , pic2.png , pic4.png same apply for right Arm

pic1 and pic2 if choose i have no issue but if choose the pic3.png need to add ballon1.png from ballon folder

because in the drawing there is a arm with ballon and arm without ballon , if i place the ballon with the hand the ballon will be behind the head and if i place the arm in from of the body the look will be different

in a short word i need an If command to do is

if choose pic3.png ( in left arm folder ) add ballon1.png ( from ballon folder ) else add nothing.png ( nothing is an empty layer in ballon folder )

i can set the same for the right arm.

sorry for that complication guys i hope i make my issue clear.

thanks & Best Regards

rodrigooler commented 2 years ago

@samimikawi apparently in the github documentation there is nothing telling how to do conditionals in some scenarios with layers that don't quite match or that can't pre-exist together. Did you find something or implement it in some local test?