"Pausing" rotation during a song
Posted: Wed Jun 02, 2021 7:26 pm
Hi all, first post. I have gone through the tutorials and searched the forums, but couldn't find the easy answer I must be missing...
I'm using a slow-speed Sine Osc modifier on a RotateAxis block to get smooth rotation, but I'd like to pause (not reset to zero) the rotation during certain parts of a song and then resume the rotation.
I've figured out how to use Internals | Playback Time and a switch statement to return a certain value depending on the point in time
(conditionals are in seconds and the return value could indicate '1' for rotate and '0' for pause rotation):
*** EXAMPLE ***
switch
{
case (x > 35) and (x < 68) : 1;
case (x > 101) and (x < 134) : 1;
case (x > 168) : 1;
default : 0;
}
*** end EXAMPLE ***
How can I use that return value to pause rotation? Using 'Bypass' on the RotateAxis block would force a discontinuous '0' rotation when the block is bypassed.
Thanks in advance for any help,
khilts
I'm using a slow-speed Sine Osc modifier on a RotateAxis block to get smooth rotation, but I'd like to pause (not reset to zero) the rotation during certain parts of a song and then resume the rotation.
I've figured out how to use Internals | Playback Time and a switch statement to return a certain value depending on the point in time
(conditionals are in seconds and the return value could indicate '1' for rotate and '0' for pause rotation):
*** EXAMPLE ***
switch
{
case (x > 35) and (x < 68) : 1;
case (x > 101) and (x < 134) : 1;
case (x > 168) : 1;
default : 0;
}
*** end EXAMPLE ***
How can I use that return value to pause rotation? Using 'Bypass' on the RotateAxis block would force a discontinuous '0' rotation when the block is bypassed.
Thanks in advance for any help,
khilts