03-10-2019, 10:55 AM | #1 |
Human being with feelings
Join Date: Mar 2019
Location: France
Posts: 5
|
Get item name in video processor
Hi all !
Do you know if it's possible to get the item name in the video processor ? I think it could be usefull for video with subtitle or lyrics for exemple ? I've look at the Mespotine list of functions but don't find anything like that... |
03-10-2019, 11:51 AM | #2 |
Human being with feelings
Join Date: Mar 2019
Location: France
Posts: 5
|
answer found
I've just dl the last version of reaper and the feature is in it ! (new text overlay) cool improvement thanks !
Last edited by Erdan; 03-10-2019 at 12:00 PM. |
03-10-2019, 02:19 PM | #3 |
Human being with feelings
Join Date: Jul 2009
Posts: 8,061
|
please explain, I haven't seen anything in the changelogs or discussion about this
__________________
REAPER Video Tutorials, Tips & Tricks and more at The REAPER Blog
|
03-11-2019, 04:44 AM | #4 |
Human being with feelings
Join Date: Mar 2019
Location: France
Posts: 5
|
In v5.972 the preset text overlay has been modified (code before : text="", now #text=""). If this variable is not filled with a string and remain empty (you keep #text="") it will get the name of the item as text overlay.
A big time saver. |
03-11-2019, 07:33 AM | #5 |
Administrator
Join Date: Jan 2005
Location: NYC
Posts: 16,153
|
5.97 changelog line:
+ Video: add processor functions: gfx_getpixel(), input_get_name(), on_parameter_change(), time_precise(), ui_get_state(), fft() |
03-11-2019, 12:05 PM | #6 |
Human being with feelings
Join Date: Jul 2009
Posts: 8,061
|
yep totally missed that, and now I see it's even implemented in the default text overlay.
Any way to do line breaks? besides item properties and "Xenakios/SWS: Rename takes..." is there a quick way to rename takes?
__________________
REAPER Video Tutorials, Tips & Tricks and more at The REAPER Blog
|
03-11-2019, 02:52 PM | #7 |
Human being with feelings
Join Date: Mar 2018
Location: Cologne
Posts: 1,362
|
Oh, this sounds great. And I also totally missed it.
Many thanks
__________________
☆.。.:*・°☆.。.:*・°☆.。.:*・°☆REAPER//✿◔‿◔)°☆.。.:*・°☆.。.:*・°☆
|
04-09-2019, 04:39 PM | #8 |
Human being with feelings
Join Date: Jan 2018
Posts: 7
|
Claifying Detail
FYI:
To get the item name to be picked up by input_get_name, make sure to add the FX to the media item... not the track. Looks like if you add the FX to the track, it will take the track name. I spent a bit of time on this, so hopefully this helps someone. |
04-10-2019, 06:44 AM | #9 |
Administrator
Join Date: Jan 2005
Location: NYC
Posts: 16,153
|
Unless the media item is a video file or dedicated video item (insertable via action) or has a video processor on it, in which case you can use input_get_name(input_next_item(-1),#text) to get its text.
|
04-11-2019, 03:32 AM | #10 |
Human being with feelings
Join Date: Mar 2018
Location: Cologne
Posts: 1,362
|
Hmm ...
I never tested it but always wanted to. And now I see it doesn't work as expected. Didn't use Jon this feature in one of his videos to create some kind of a subtitle show from item names? If I use a video processor (on track) with text overlay and keep the get name variable untouched, it shows the first item name correctly but doesn't change it if a new item name follows. Wasn't it intended to do so? I don't know. But I thought so.
__________________
☆.。.:*・°☆.。.:*・°☆.。.:*・°☆REAPER//✿◔‿◔)°☆.。.:*・°☆.。.:*・°☆
|
04-12-2019, 12:43 AM | #11 | |
Human being with feelings
Join Date: Jul 2009
Posts: 8,061
|
Quote:
Watch out for line breaks in the item names. Might look right in the project but will be unformatted in on export, or reopening the project later. I put a bit too much trust in that earlier this week.
__________________
REAPER Video Tutorials, Tips & Tricks and more at The REAPER Blog
|
|
04-12-2019, 02:48 PM | #12 |
Administrator
Join Date: Jan 2005
Location: NYC
Posts: 16,153
|
Hmm, going to fix this actually for track/take/marker names.
Last edited by Justin; 04-12-2019 at 03:02 PM. |
04-21-2019, 11:03 AM | #13 |
Human being with feelings
Join Date: May 2017
Location: Somewhere over the Rainbow
Posts: 6,831
|
Oh, good to know, I should update this then...
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - ReaGirl - a GuiLib for guis working for blind people |
06-01-2020, 07:54 AM | #14 |
Human being with feelings
Join Date: Apr 2011
Posts: 3,719
|
Oh! I didn't know that such a thing existed! "Insert dedicated video processor item" (action 41932) |
07-01-2020, 12:10 AM | #15 |
Human being with feelings
Join Date: Jul 2014
Posts: 658
|
Wonderfull ¡¡¡
Yesterday I realized about this ¡¡¡ Much esay GREAT ¡¡¡ |
07-04-2020, 01:50 AM | #16 |
Human being with feelings
Join Date: Apr 2010
Location: Portland OR
Posts: 217
|
Jon, if you look at the code for my guitar chords grid effect, you'll see I loop through the input string and parse it character by character. So I can e.g. turn "b" into a flat sign. You could do the same -- you could mod the text overlay effect to have a special character, perhaps "/", which represents a line break. When the code finds that character, instead of writing it on the screen, it resets xpos back to the start and increments ypos. So "line break/demo" becomes
line break demo
__________________
alt-tuner: a microtonal midi plug-in: www.TallKite.com/alt-tuner.html The Kite Guitar, a playable 41-ET guitar: www.KiteGuitar.com |
08-25-2021, 01:51 AM | #17 |
Human being with feelings
Join Date: May 2019
Posts: 59
|
Okay so I'm absolutely loving this as I was about to have to make an individual title card for every song in an After Effects/ Premiere project.... it's ridiculous that these "Industry Standard" Video editing softwares do not have the capability to do a procedurally generated "Now Playing" thing.... lmao :'D
One issue I'm having is that the ".mp3"/ file extensions show up in the overlay; is there any way I can disable this? I'd like it to just say "Artist - Song" rather than "Artist - Song.mp3" |
08-25-2021, 08:46 AM | #18 |
Human being with feelings
Join Date: Jul 2009
Posts: 8,061
|
batch rename items to remove the last 4 characters
__________________
REAPER Video Tutorials, Tips & Tricks and more at The REAPER Blog
|
01-03-2022, 11:41 PM | #19 |
Human being with feelings
Join Date: Apr 2014
Posts: 403
|
The dedicated video processor item is so underrated, I love it!
Any way to access user presets with it? This is a bit a dealbreaker for now because having to change every time a lot of settings like x & y text position, bg alpha, border is not very efficient. |
01-04-2022, 05:03 AM | #20 | |
Human being with feelings
Join Date: Aug 2020
Location: Brasil
Posts: 878
|
Quote:
Code:
strcmp(#text,"")==0 ? input_get_name(-1,#text) Code:
strcmp(#text,"")==0 ? ( input_get_name(-1,#item_name); strncpy(#text,#item_name,strlen(#item_name)-4); //assuming 4 chars extensions ); string functions reference: https://www.cockos.com/EEL2/index.php#string_funcs Last edited by papagirafe; 01-04-2022 at 05:12 AM. Reason: incomplete info |
|
10-17-2022, 08:19 AM | #21 |
Human being with feelings
Join Date: Feb 2017
Posts: 212
|
I'm getting the track name with input_get_name(-1,#text) not the item or take name.
|
10-17-2022, 08:58 AM | #22 |
Human being with feelings
Join Date: Feb 2017
Posts: 212
|
wooop, just figured it out! add FX to the item or take, not the track.
|
10-17-2022, 11:53 AM | #23 | |
Human being with feelings
Join Date: Aug 2020
Location: Brasil
Posts: 878
|
Quote:
|
|
Thread Tools | |
Display Modes | |
|
|