Python interface for a character modeling software. Designed for advanced drivers.
Example usage:
In [1]: from pykoikatu import *
In [2]: card = read_card('in.png')
In [3]: card.keys()
Out[3]: dict_keys(['img1', 'img2', 'unknown_data', 'lstInfo', 'face', 'body', 'hair', 'coordinate', 'parameter', 'status'])
In [4]: card['face']
Out[4]:
OrderedDict([('version', '0.0.2'),
('shapeValueFace',
[0.2280000001192093,
0.12399999797344208,
0.0,
...,
0.0]),
('headId', 0),
('skinId', 0),
('detailId', 0),
('detailPower', 0.4490000009536743),
('cheekGlossPower', 0.0),
('eyebrowId', 1),
('eyebrowColor',
[0.44285711646080017,
0.36160632967948914,
0.2593877613544464,
1.0]),
('noseId', 0),
('pupil',
[OrderedDict([('id', 10),
('baseColor',
[0.6465306878089905,
0.8454345464706421,
0.9142857789993286,
1.0]),
('subColor',
[0.5227004885673523,
0.40331634879112244,
0.6071428656578064,
1.0]),
('gradMaskId', 1),
('gradBlend', 0.45806393027305603),
('gradOffsetY', 0.4774189591407776),
('gradScale', 0.5793062448501587)]),
OrderedDict([('id', 10),
('baseColor',
[0.6465306878089905,
0.8454345464706421,
0.9142857789993286,
1.0]),
('subColor',
[0.5227004885673523,
0.40331634879112244,
0.6071428656578064,
1.0]),
('gradMaskId', 1),
('gradBlend', 0.45806393027305603),
('gradOffsetY', 0.4774189591407776),
('gradScale', 0.5793062448501587)])]),
('hlUpId', 1),
('hlUpColor', [1.0, 1.0, 1.0, 0.652999997138977]),
('hlDownId', 2),
('hlDownColor',
[0.971428632736206,
0.971428632736206,
0.971428632736206,
0.3642857074737549]),
('whiteId', 1),
('whiteBaseColor',
[0.9338235259056091,
0.9230268001556396,
0.913224458694458,
1.0]),
('whiteSubColor',
[0.7209666967391968,
0.7297757267951965,
0.7720588445663452,
1.0]),
('pupilWidth', 0.8719353675842285),
('pupilHeight', 0.8319356441497803),
('pupilX', 0.5622584223747253),
('pupilY', 0.4270966947078705),
('hlUpY', 0.5),
('hlDownY', 0.5),
('eyelineUpId', 8),
('eyelineUpWeight', 1.0),
('eyelineDownId', 20),
('eyelineColor',
[1.0, 0.7413794994354248, 0.46428579092025757, 1.0]),
('moleId', 0),
('moleColor',
[0.35899999737739563,
0.35899999737739563,
0.35899999737739563,
0.6274510025978088]),
('moleLayout',
[0.5, 0.6499999761581421, 0.0, 0.4285714626312256]),
('lipLineId', 0),
('lipLineColor',
[0.764285683631897,
0.7479082345962524,
0.7479082345962524,
1.0]),
('lipGlossPower', 0.5516130924224854),
('doubleTooth', True),
('baseMakeup',
OrderedDict([('version', '0.0.0'),
('eyeshadowId', 2),
('eyeshadowColor',
[0.8897058963775635,
0.8206490278244019,
0.798118531703949,
1.0]),
('cheekId', 2),
('cheekColor',
[1.0,
0.7009999752044678,
0.7009999752044678,
0.6340000033378601]),
('lipId', 0),
('lipColor',
[1.0, 0.534000039100647, 0.534000039100647, 0.0]),
('paintId', [0, 0]),
('paintColor',
[[1.0,
0.29411762952804565,
0.29411762952804565,
0.7843137383460999],
[1.0,
0.29411762952804565,
0.29411762952804565,
0.7843137383460999]]),
('paintLayout',
[[0.0, 0.1599999964237213, 0.0, 0.0],
[0.12999999523162842,
0.1599999964237213,
0.0,
0.0]])])),
('foregroundEyes', 0),
('foregroundEyebrow', 2)])