View Single Post
Old 03-20-2020, 01:46 PM  
Human being with feelings
amagalma's Avatar
Join Date: Apr 2011
Posts: 3,419

And since we talk about SetMediaItemTakeInfo_Value, it returns true even if not succeded. For example, here I mistype the parameter name by adding an extra space in the end. The playrate does not change but, it returns true as if it did.
item = reaper.GetMediaItem(0, 0)
take = reaper.GetMediaItemTake( item, 0)
done = reaper.SetMediaItemTakeInfo_Value(take,"D_PLAYRATE ",2)
reaper.Undo_OnStateChange( "foo bar" )
The same happens with any parameter name.. Not just with D_PLAYRATE
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote