RPR GetTake
From CockosWiki
(→Examples) |
|||
(3 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
{{API_Doc_Header}} | {{API_Doc_Header}} | ||
=GetTake()= | =GetTake()= | ||
- | '''GetTake(MediaItem* item, int takeidx)''' | + | '''MediaItem_Take* GetTake(MediaItem* item, int takeidx)''' |
get a take from an item by take count (zero-based) | get a take from an item by take count (zero-based) | ||
Line 10: | Line 10: | ||
MediaItem_Take* | MediaItem_Take* | ||
==Examples== | ==Examples== | ||
+ | ===C++=== | ||
+ | <source lang=cpp> | ||
+ | </source> | ||
+ | |||
+ | |||
===Perl=== | ===Perl=== | ||
- | < | + | <source lang=perl> |
- | </ | + | use strict; |
+ | use warnings; | ||
+ | |||
+ | use constant CURR_PROJ => 0; | ||
+ | use constant FIRST_SEL => 0; | ||
+ | use constant FIRST_TAKE => 0; | ||
+ | |||
+ | my $it = RPR_GetSelectedMediaItem(CURR_PROJ, FIRST_SEL); | ||
+ | my $tk = RPR_GetTake($it, FIRST_TAKE); | ||
+ | </source> | ||
+ | |||
+ | |||
===Python=== | ===Python=== | ||
- | < | + | <source lang=python> |
- | </ | + | </source> |
+ | |||
==See Also== | ==See Also== | ||
- | {{ | + | {{SeeAlso_take}} |
+ | |||
+ | ''(Section automatically generated, edits may be overwritten.)'' | ||
==Stuff== | ==Stuff== |
Latest revision as of 09:46, 29 January 2010
Main Page > REAPER Documentation > ReaScript > ReaScript API, Functions > RPR GetTake
Main Page > REAPER Documentation > REAPER API > REAPER API Functions > RPR GetTake
Contents |
GetTake()
MediaItem_Take* GetTake(MediaItem* item, int takeidx)
get a take from an item by take count (zero-based)
Parameters
MediaItem* item, int takeidx
Returns
MediaItem_Take*
Examples
C++
Perl
use strict; use warnings; use constant CURR_PROJ => 0; use constant FIRST_SEL => 0; use constant FIRST_TAKE => 0; my $it = RPR_GetSelectedMediaItem(CURR_PROJ, FIRST_SEL); my $tk = RPR_GetTake($it, FIRST_TAKE);
Python
See Also
take: GetActiveTake, GetMediaItemNumTakes, GetMediaItemTake, GetMediaItemTakeInfo_Value, GetMediaItemTake_Item, GetMediaItemTake_Source, GetMediaItemTake_Track, GetSetMediaItemTakeInfo_String, GetTake, GetTakeEnvelopeByName, SetMediaItemTakeInfo_Value, AddTakeToMediaItem, CountTakes,
(Section automatically generated, edits may be overwritten.)
Stuff
Main Page > REAPER Documentation > ReaScript > ReaScript API, Functions > RPR GetTake
Main Page > REAPER Documentation > REAPER API > REAPER API Functions > RPR GetTake