Old 10-27-2010, 11:48 AM   #1
AdamWathan
Human being with feelings
 
AdamWathan's Avatar
 
Join Date: Apr 2008
Location: Cambridge, Ontario
Posts: 2,644
Default API Bug? Can't set item position if item is < 10ms in length

This was driving me crazy all last night and this morning, thinking I had some rogue bug in my code but it turns out it is impossible to set an item's position if the item is < 10ms long?

None of the pre-existing extension actions that move an item work if the item is that short, and this simple Python script does absolutely nothing unless the item is > 10ms:

item = RPR_GetSelectedMediaItem(0,0);
RPR_SetMediaItemInfo_Value(item, "D_POSITION", 500);

http://www.adamwathan.com/reaper/APIhell.swf

Yikes!

This is at least a problem when developing in C++ and Python, using SetMediaItemInfo_Value or GetSetMediaItemInfo.
AdamWathan is offline   Reply With Quote
Old 10-27-2010, 02:57 PM   #2
Jeffos
Mortal
 
Jeffos's Avatar
 
Join Date: Dec 2008
Location: France
Posts: 1,969
Default

Have the stuff opened right now just did the test: semi-confirmed here, Adam. I reproduce it (C++) but with items that are roughly less than 2ms long (!?#é!@ù).
Jeffos is offline   Reply With Quote
Old 10-27-2010, 03:46 PM   #3
AdamWathan
Human being with feelings
 
AdamWathan's Avatar
 
Join Date: Apr 2008
Location: Cambridge, Ontario
Posts: 2,644
Default

Found another one... You can't set the length of an item to be <= 10ms either...

http://www.adamwathan.com/reaper/APIhell2.swf

I thought I had a workaround for the position bug but this breaks that
AdamWathan is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 02:28 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.