Skip to content

Instantly share code, notes, and snippets.

@lerlorerin
Last active December 17, 2015 19:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lerlorerin/5659532 to your computer and use it in GitHub Desktop.
Save lerlorerin/5659532 to your computer and use it in GitHub Desktop.
offset keys by 1 frame in selected object from current time. MEL script.
string $selekcja[] = `ls -sl`;
string $oldSelekcja[] = $selekcja;
int $ssize = size($selekcja);
for($i=0;$i<$ssize;$i++)
{
timeSliderEditKeys addInbetween;
//select $selekcja[$i];
//print $i;
//print $selekcja[$i];
//print "\n";
select -d $selekcja[0];
$selekcja = `ls -sl`;
}
select $oldSelekcja;
//timeSliderEditKeys addInbetween;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment