How to get Clip instance without cursor ?

Post Reply New Topic
RELATED
PRODUCTS

Post

AUTO-ADMIN: Non-MP3, WAV, OGG, SoundCloud, YouTube, Vimeo, Twitter and Facebook links in this post have been protected automatically. Once the member reaches 5 posts the links will function as normal.
Hi, guys.

Code: Select all (#)

getItemAt ( int index );
It doesn't return clip instance.
I'm using

Code: Select all (#)

showInEditor( int slot )
then, I get the clip on cursor.
but it's too slow to get whole clips in a project.

Does anyone know how to do it ?

Post

Create a variable for each clip using eval function. Your maximum loop can be higher than your track count, it won't throw an error. So just set the loop maximum to 500 (as I'm sure you don't need more tracks than this in your project).
This is the code to dynamically create variables.

//Dynamically create variables
a = 'varname';
str = a+' = '+'123';
eval(str)

You can only get the selected clip in the arrangement view.

I hope this helps.

I'm also not 100% sure what your looking to do, can you explain this further and maybe I can give you more advice.

Post Reply

Return to “Controller Scripting”