Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
再生速度を変更
/*
プレイバックスピードを変更します。ただそれだけの物語。
*/
proc ChangePlaybackSpeed(){
string $window = "ChangePlaybackSpeed";
if( window( "-ex" , $window ) ){
deleteUI $window;
}
window( "-t" , $window , "-w" , 300 , "-tb" , true , $window );
rowLayout( "-nc" , 5 );
button( "-l" , "0.1" , "-w" , 50 , "-bgc" , 0,0,0.5 , "-c" , "Change(0.1)" );
button( "-l" , "0.5" , "-w" , 50 , "-bgc" , 0,0,0.3 , "-c" , "Change(0.5)" );
button( "-l" , "1.0" , "-w" , 50 , "-bgc" , 0.3,0.3,0.3 , "-c" , "Change(1)" );
button( "-l" , "1.5" , "-w" , 50 , "-bgc" , 0.3,0,0 , "-c" , "Change(1.5)" );
button( "-l" , "2.0" , "-w" , 50 , "-bgc" , 0.5,0,0 , "-c" , "Change(2)" );
showWindow $window;
}
proc Change( float $_val ){
playbackOptions( "-ps" , $_val );
print( "再生速度を " + playbackOptions( "-q" , "-ps" ) + " に変更" );
}
ChangePlaybackSpeed();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.