RPR GetMediaItemTake Item
From CockosWiki
(Difference between revisions)
(→) |
|||
Line 1: | Line 1: | ||
{{API_Doc_Header}} | {{API_Doc_Header}} | ||
- | = = | + | =MediaItem* GetMediaItemTake_Item(MediaItem_Take* take)= |
+ | Get parent item of media item take | ||
+ | '''This function is not yet supported (v3.13)''' | ||
==Parameters== | ==Parameters== | ||
+ | MediaItem_Take* take | ||
==Returns== | ==Returns== | ||
+ | MediaItem* | ||
==Examples== | ==Examples== | ||
===Perl=== | ===Perl=== | ||
<pre> | <pre> | ||
+ | # | ||
+ | # GetMediaItem_Take.pl | ||
+ | # | ||
+ | |||
+ | use strict; | ||
+ | use warnings; | ||
+ | |||
+ | use constant CURR_PROJ => 0; | ||
+ | use constant FIRST_SEL_ITEM => 0; | ||
+ | use constant FIRST_TAKE => 0; | ||
+ | |||
+ | # Bit artificial this, I have to start off from where I'm going to end up, | ||
+ | # at the Media Item | ||
+ | |||
+ | # Get the first selected media item in the current project | ||
+ | my $it = RPR_GetSelectedMediaItem(CURR_PROJ,FIRST_SEL_ITEM); | ||
+ | |||
+ | # and now the take in that item | ||
+ | my $take = RPR_GetMediaItemTake($it, FIRST_TAKE); | ||
+ | |||
+ | # now back up to the Media Item | ||
+ | my $item = RPR_GetMediaItem_Take($take); | ||
+ | |||
+ | # check if they match... | ||
+ | my $result = iif($it == $item, 'Woo Hoo!', 'Oops...'); | ||
+ | |||
+ | RPR_ShowConsoleMsg("$result\n"); | ||
</pre> | </pre> | ||
===Python=== | ===Python=== | ||
Line 11: | Line 42: | ||
</pre> | </pre> | ||
==See Also== | ==See Also== | ||
+ | [[RPR_GetSelectedMediaItem|GetSelectedMediaItem]], | ||
+ | [[RPR_GetMediaItemTake|GetMediaItemTake]], | ||
+ | [[RPR_ShowConsoleMsg|ShowConsoleMsg]] | ||
==Stuff== | ==Stuff== | ||
{{API_Doc_Footer}} | {{API_Doc_Footer}} |
Revision as of 23:23, 30 October 2009
Main Page > REAPER Documentation > ReaScript > ReaScript API, Functions > RPR GetMediaItemTake Item
Main Page > REAPER Documentation > REAPER API > REAPER API Functions > RPR GetMediaItemTake Item
Contents |
MediaItem* GetMediaItemTake_Item(MediaItem_Take* take)
Get parent item of media item take
This function is not yet supported (v3.13)
Parameters
MediaItem_Take* take
Returns
MediaItem*
Examples
Perl
# # GetMediaItem_Take.pl # use strict; use warnings; use constant CURR_PROJ => 0; use constant FIRST_SEL_ITEM => 0; use constant FIRST_TAKE => 0; # Bit artificial this, I have to start off from where I'm going to end up, # at the Media Item # Get the first selected media item in the current project my $it = RPR_GetSelectedMediaItem(CURR_PROJ,FIRST_SEL_ITEM); # and now the take in that item my $take = RPR_GetMediaItemTake($it, FIRST_TAKE); # now back up to the Media Item my $item = RPR_GetMediaItem_Take($take); # check if they match... my $result = iif($it == $item, 'Woo Hoo!', 'Oops...'); RPR_ShowConsoleMsg("$result\n");
Python
See Also
GetSelectedMediaItem, GetMediaItemTake, ShowConsoleMsg
Stuff
Main Page > REAPER Documentation > ReaScript > ReaScript API, Functions > RPR GetMediaItemTake Item
Main Page > REAPER Documentation > REAPER API > REAPER API Functions > RPR GetMediaItemTake Item