azagoruyko / picker

Flexible picker for animators in Maya
Apache License 2.0
27 stars 9 forks source link

import anim school picker #1

Open luckylyk opened 2 years ago

luckylyk commented 2 years ago

Hi ! Such greate job. As you know, lot's of people encounter issue with the new AnimSchoolPicker licence policy. I'm doing propaganda to push every open source picker to be able to import those files. We decoded their file and made a module to convert to readable dict that you can easily translate into your file format which is pretty straighforward to understand :)

Take a look on that stand alone module: https://github.com/DreamWall-Animation/dwpicker/blob/main/dwpicker/ingest/animschool/parser.py interesting function: parse_animschool_picker, save_png

azagoruyko commented 2 years ago

Hi. That's great, I'll write a converter as soon as I can and upload it here. Thank you!

ср, 15 июн. 2022 г. в 22:02, Lionel Brouyère @.***>:

Hi ! Such greate job. As you know, lot's of people encounter issue with the new AnimSchoolPicker licence policy. I'm doing propaganda to push every open source picker to be able to import those files. We decoded their file and made a module to convert to readable dict that you can easily translate into your file format which is pretty straighforward to understand :)

Take a look on that stand alone module:

https://github.com/DreamWall-Animation/dwpicker/blob/main/dwpicker/ingest/animschool/parser.py interesting function: parse_animschool_picker, save_png

— Reply to this email directly, view it on GitHub https://github.com/azagoruyko/picker/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACJLLH636UGMEJ6ONCDRMG3VPISE3ANCNFSM5Y4KRUZQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

azagoruyko commented 2 years ago

https://github.com/azagoruyko/picker/blob/main/animschool_converter.py This file can be used for conversion. Width/height of animschool' buttons gotten from the script are not correct, so I've found out that label size is important, but due to different implementations I have some troubles to convert sizes perfectly.

Here is original animschool pickers. Reimu_Picker_01

This is mine. image image (1)

luckylyk commented 2 years ago

This is just great :) The difference I note is the font size dont match and it seems you have a minimum size allowed bigger than AnimSchool. But tbh, If i'm animator loosing my AS licence and gathering this, I would be just happy and would adjust the smal hickups.

azagoruyko commented 2 years ago

Yeah, I use consolas font with +2 to all font sizes with css. And you're right, my grid is a bit larger than AnimSchool has. Maybe the case is to scale everything by some coefficient. I try to test this idea.