google / pikov

Tool to create and edit Pikov pixel art Markov chain animations.
Apache License 2.0
16 stars 10 forks source link

Friendly ID property for clips #18

Closed tswast closed 6 years ago

tswast commented 6 years ago

I'm finding it useful to create helper variables to keep track of which clip is which.

https://github.com/google/pikov/blob/279cf9bf11f2069f72e591254d91d59702ec8ece/examples/gamekitty/gamekitty_transitions.ipynb#L41

Such a feature could be built-in to the clip table, where perhaps clips could be accessed by name in addition to by numeric ID. It could work something like:

gamekitty = pikov.Pikov.open('gamekitty.pikov')
clips = gamekitty.clips
stand_up = clips['stand_up']