reaper-oss / sws

The SWS extension is a collection of features that seamlessly integrate into REAPER, the Digital Audio Workstation (DAW) software by Cockos, Inc
https://www.sws-extension.org/
MIT License
455 stars 85 forks source link

FR: "Add png to current track as item" (and related) actions #491

Open Jeff0S opened 10 years ago

Jeff0S commented 10 years ago

From pyt...@yahoo.com on June 22, 2012 09:30:21

The right click menu option "Add to current track as item" found on the PNG imgaes bookmark is not working. The same option also does not work when assigned to the slots "Dbl-click".

On the subject of this function..., it would be nice to have an Action for it.., and if you would'nt mind an Action that does the same but automatically stretches the image to fit the item.

I discovered a neat little trick using imgage slots.., I don't like the way that REAPER displays MIDI items in the arrange window so what I do is I make a screen capture of the opened MIDI editor, crop it to just the grid and save it as a .png and then I drop it in REAPER and either overlay the MIDI item with the .png or I use REAPERS lane system and position it above or below the item. Now when you zoom in on the arrange window the image stretches to give nice detail.

If you could write the action that I mentioned above then I could create a custom action that would place on the track both the MIDI item and the .png image file as well.

p.s. If you guys decide to implement any of the ideas that I've listed in my past few posts could you please implement this one first because it only requires one action to be added to the sws extension.

Thank you,

Anton9

Original issue: http://code.google.com/p/sws-extension/issues/detail?id=491

Jeff0S commented 10 years ago

From jeffos...@gmail.com on June 24, 2012 09:34:45

I can't reproduce here.. "Add to current track as item" works fine (from the context menu, double-click or ENTER key), win xp & osx. Any reproduction steps?

Jeff0S commented 10 years ago

From pyt...@yahoo.com on June 24, 2012 15:10:59

Double-clicking and Enter key do not work here. Drag and drop works fine. The other two commands from the "Dbl-click to" drop down menu "Show image" and "Set track icon for selected tracks" both work.

Jeff0S commented 10 years ago

From jeffos...@gmail.com on June 25, 2012 11:52:44

Weird!

Anton9, please, can you attach your s&m.ini file? and also tell me with which slot # I cantry to repro and attach the related png file here too? TIA!

Status: Investigating
Owner: jeffos...@gmail.com

Jeff0S commented 10 years ago

From pyt...@yahoo.com on June 26, 2012 16:23:35

Here you go.., as far as which slot # to try, I think any should do. I loaded up around 80 files and double-clicked on random slots and none of them worked. The .ini file I've attached has only one slot in use and I didn't include any .png files because I'm just trying it with the default track icons.

Attachment: S&M.ini

Jeff0S commented 10 years ago

From jeffos...@gmail.com on June 28, 2012 01:04:32

can't repro.. the ini file is dead simple.. this one is weird, really. when you say "it does not work" : what happens? noting or something you do not expect? also can you confirm you are on XP 32bit (if I remember right) ?

Jeff0S commented 10 years ago

From pyt...@yahoo.com on June 28, 2012 12:28:53

When either double-clicking an image slot with "Dbl-click to:" set to "Add to current track as item" or right-clicking and selecting the same option from the context menu nothing happens at all. Yes this is happening on XP 32bit.., I'll try on my Vista system later tonight and let you know what happens. It is really weird, I've tried all the other double-click options for all slot types and this is the only one that has a problem.

Jeff0S commented 10 years ago

From pyt...@yahoo.com on June 29, 2012 09:44:36

Update: I tried it on my Vista system and the same thing is happening.

Jeff0S commented 10 years ago

From jeffos...@gmail.com on July 03, 2012 00:59:28

Can you try to run the attached script? (it should be ok with your REAPER path, i.e. c:\reaper) if that does not work either then it is a native API bug..

Attachment: testImg.py

Jeff0S commented 10 years ago

From pyt...@yahoo.com on July 05, 2012 12:32:09

Hi Jeffos,

I tried that script and it didn't work.

Jeff0S commented 10 years ago

From jeffos...@gmail.com on July 05, 2012 23:32:11

ok, so it is an API issue (as you can see there is only one call to an API fund in this script). I can'tt help here, sorry, his one is for Cockos.. For the record, I did the test and it worked here with a portable install like yours c:\reaper, weird.

I let the issue opened for the FR part of it.

Summary: FR: "Add png to current track as item" (and related) actions
Labels: -Type-Defect Type-Enhancement