Skip to content

SkinAnimation

Legopitstop edited this page Aug 11, 2022 · 1 revision

Animate the SkinCanvas paperdoll bones.

Example Code:

move = SkinAnimation(master=canvas, length=25000, loop=True)
move.translate(500, 'my_tag', rel=(0,100))
move.translate(1000, 'my_tag', rel=(100,0))
move.translate(1500, 'my_tag', rel=(0,-100))
move.translate(2000, 'my_tag', rel=(-100,0))

move.play()

Arguments:

argument value
master string
length The total animation time in ms
loop Whether or not to run this animation continuous
start_delay Delay in ms before the animation starts
loop_delay Delay in ms before the animation starts again.

Methods:

SkinAnimation.command(time=new_time, tag=new_tag, command=new_command)
SkinAnimation.translate(time=new_time, tag=new_tag, post=new_post, rel=new_rel)
SkinAnimation.play()
SkinAnimation.stop()

# Not fully added yet
SkinAnimation.rotate(time=new_time, tag=new_tag, post=new_post, rel=new_rel)
SkinAnimation.scale(time=new_time, tag=new_tag, post=new_post, rel=new_rel)

General Information

Constants

Classes

Clone this wiki locally