Tvpaint flipbook for maya (script)

Tvpaint flipbook for maya (script)

This is the free video Tvpaint flipbook for maya (script) that can be downloaded, played and edit with our RedcoolMedia movie maker MovieStudio free video editor online and AudioStudio free audio editor online

VIDEO DESCRIPTION:

Play, download and edit the free video Tvpaint flipbook for maya (script).

I created this little mel script for maya to emulate the tvpaint flipbook feature.

It works better on maya 2019 thanks to animation cache, but with normal/light rigs, it can be useful in any version.

You need to to create a hotkey under custom scripts for press and another one for release, tvpaint hotkey is W but I did it on L.

TvPaint flipbook takes 10 frames or something like that, I did 24 here, but you can change the 12 number to whatever you want, so it will take Xframes behind and after the frame you're at that moment.

Hope that helps and have fun!
--------------------------------------------
//press L

//guarda en una variable el timeslider min
float $minTime = `playbackOptions -q -minTime`;
//guarda en una variable el timeslider max
float $maxTime = `playbackOptions -q -maxTime`;

//declarar variable frame actual
$time = `currentTime -query`;
//declarar variable frame -12 frames
$timeinf = $time - 12;
//declarar variable frame +12 frames
$timesup = $time + 12;
//establece el frame minimo y maximo con 12 por debajo y por arriba
playbackOptions -loop continuous;
playbackOptions -edit -minTime $timeinf;
playbackOptions -edit -maxTime $timesup;
//enciende el play
play -state on;

--------------------------------------
//release L

//stop playback
play -state off;
//vuelve a dejar el timeline tal como estaba
playbackOptions -edit -minTime $minTime;
playbackOptions -edit -maxTime $maxTime;
currentTime $time;

Download, play and edit free videos and free audios from Tvpaint flipbook for maya (script) using RedcoolMedia.net web apps