Quantcast
Channel: Adobe Community : Unanswered Discussions - After Effects
Viewing all articles
Browse latest Browse all 30854

Looping a random section of a layer

$
0
0

Hey guys, I'm trying to write an expression and am a bit out of my depth.  In short, I'm basically trying to replicate the function of the "Random - Split Clip" function in Particular if you're familiar, but just for a single layer.

 

In more detail:  I'm trying to write an expression to be applied to the time remap property of a comp.  This comp would be composed of a series of video clips, all exactly the same length.  The input parameters would be a random seed, and the length of a single clip.  The end result would be that the layer would loop a single clip in the series, chosen at random.  If the layer were duplicated, each instance would play a different clip.

 

Any thoughts about how to accomplish this?  Thanks in advance for any help!

 

 

Extra credit:  Could I make this work even with clips that were uneven lengths?  Perhaps by using layer markers or something?  What about a version with an additional parameter for loop type (ping-pong etc).


Viewing all articles
Browse latest Browse all 30854

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>