11-10-2018, 01:32 AM | #1 |
Human being with feelings
Join Date: May 2014
Location: Norway
Posts: 982
|
Creating a loop in the video processor?
Hey, I was wondering if there is any way to use a for-loop or while-loop in the Reaper video processor? I don't even know what programming language it uses.
|
11-10-2018, 02:41 AM | #2 |
Human being with feelings
Join Date: Mar 2018
Location: Cologne
Posts: 1,362
|
Its eel as I found out here: https://mespotin.uber.space/Mespotin...l#introduction
And it of course should be capable of doing so. http://www.eelang.org/documentation/index.php Are you planning to create you own video processor presets? Have you an idea? I'm not curious. |
11-10-2018, 02:43 AM | #3 |
Human being with feelings
Join Date: Mar 2018
Location: Cologne
Posts: 1,362
|
And that's a good reason to put Reaper video in its own subforum to quickly find out such things in the future: https://forum.cockos.com/showthread.php?t=213107
|
11-10-2018, 05:12 PM | #4 |
Human being with feelings
Join Date: Oct 2009
Posts: 99
|
EEL is invented by Cockos and often mistaken for this other language which is named the same but otherwise has no similarities (Eli posted a link to it).
Concerning Reaper EEL is used for 3 things: - JSFX - EEL ReaScripts - Video processor All 3 have their own dedicated set of functions but there are many things in common. For example the stuff here (JSFX basic code reference) is mostly available for video-processor too. You'll find 3 kind of loops there too (for, while, do-while). |
11-11-2018, 04:03 AM | #5 |
Human being with feelings
Join Date: Mar 2018
Location: Cologne
Posts: 1,362
|
Hmm! So I was completely wrong. Sometimes the most obvious isn't the truth. This was a good lesson for that.
|
11-11-2018, 10:03 AM | #6 |
Human being with feelings
Join Date: May 2014
Location: Norway
Posts: 982
|
Thanks for the tips! I was able to create a shadow effect using a loop.
I'll share my preset here. Where do people share their video presets anyway? Code:
// text overlay text="Set text here"; font="Arial"; //@param1:size 'text size' 0.05 0.01 0.3 0.1 0.001 //@param2:ypos 'y position' 0.5 -0.2 1.2 0.5 0.01 //@param3:xpos 'x position' 0.5 0 1 0.5 0.01 //@param5:fgr 'text R' 255 0 255 128 1 //@param6:fgg 'text G' 255 0 255 128 1 //@param7:fgb 'text B' 255 0 255 128 1 //@param8:fga 'text A' 1 0 1 0.5 0.005 //@param10:sha 'shadow alpha' 0.3 0 1 0.5 0.01 //@param11:shy 'shadow y' 0.5 -1 1 0.5 0.01 //@param12:shs 'shadow spread' 5 0 10 5 0.05 //@param13:shi 'shadow iterations' 5 1 20 5 1 gfx_blit(0,1); gfx_setfont(size*project_h,font); gfx_str_measure(text,txtw,txth); yt = (project_h - txth)*ypos; gfx_set(0,0,0,fga * (sha * sha * sha * sha), 18); x = xpos * (project_w-txtw); i = 0; loop(shi, gfx_str_draw(text,x + (i * shs * size),yt + (100 * shy * size) + (i * shs * size)); gfx_str_draw(text,x - (i * shs * size),yt + (100 * shy * size) - (i * shs * size)); gfx_str_draw(text,x + (i * shs * size),yt + (100 * shy * size) - (i * shs * size)); gfx_str_draw(text,x - (i * shs * size),yt + (100 * shy * size) + (i * shs * size)); i += 1; ); gfx_set(fgr/255,fgg/255,fgb/255,fga); gfx_str_draw(text,x,yt); |
11-11-2018, 03:51 PM | #7 |
Human being with feelings
Join Date: Mar 2018
Location: Cologne
Posts: 1,362
|
Many thanks for sharing. I will test it tomorrow because its to late at night now.
Yeah! Where to share the video presets? You could upload it to stash. But as I mentioned in my second post in this thread: We need a video section in this forums! This is a separate world to Reaper and should be handled like that. So give your +1 in the request. Maybe they will |
11-12-2018, 04:31 AM | #8 | |
Human being with feelings
Join Date: Mar 2018
Location: Cologne
Posts: 1,362
|
Quote:
I have tested it and it works like a charm. Font selection, shadowing ... very nice. Many thanks for that. |
|
11-15-2018, 10:51 AM | #9 | |
Human being with feelings
Join Date: May 2014
Location: Norway
Posts: 982
|
Quote:
Eventually we should also incorporate the best ones to the ReaPack repository. |
|
11-15-2018, 02:36 PM | #10 | |
Human being with feelings
Join Date: Mar 2018
Location: Cologne
Posts: 1,362
|
Quote:
There are some other codes hidden in the forums. Maybe it would be a good start to gather them as links in one thread. By the way. Is it possible to anti aliasing the fonts? I recognized that they look rasterized sometimes. But I'm not sure if its the font or the method of the video processor. Beside that. I have to say, it looks pretty awesome to choose your preset with semi transparent fonts and a bit of shadow. Beautiful. Last edited by Eliseat; 11-15-2018 at 03:08 PM. |
|
11-20-2018, 10:35 PM | #11 |
Administrator
Join Date: Jan 2005
Location: NYC
Posts: 15,721
|
|
11-21-2018, 04:34 AM | #12 |
Human being with feelings
Join Date: Mar 2018
Location: Cologne
Posts: 1,362
|
Yes, that's what I thought too. But I will start a gathering thread for presets (links and short description) because lots of them are hidden in threads with different titles. And this thread is a good example.
|
12-04-2018, 03:51 PM | #13 | |
Human being with feelings
Join Date: Dec 2012
Location: Germany
Posts: 3,012
|
Quote:
Is there a way to avoid stairsteps at the edges of round letters like some sort of alias filtering or "font smoothing"? .
__________________
Check out AVConvert (free, super-fast media file manipulation via the right-click context-menu in Windows Explorer) and my free VST plugins. My Reaper tutorials and studio related videos on youtube. |
|
11-26-2019, 09:18 AM | #14 |
Human being with feelings
Join Date: May 2014
Location: Norway
Posts: 982
|
Super Necro-Bump 64, but yes - I would imagine that to be possible, but not using my crude method for making shadows. =P
|
10-07-2020, 07:06 AM | #15 | |
Human being with feelings
Join Date: Sep 2014
Location: Rosario, Santa Fe, Argentina
Posts: 94
|
Quote:
I can change everything, font size, font type, and colors... but I can't make the shadow appear... I tried every possible tweaking... Do you know why that happens? |
|
11-04-2020, 05:55 AM | #16 | |
Human being with feelings
Join Date: May 2020
Location: Spain
Posts: 24
|
Quote:
PS: Thanks a lot for sharing Mordi! |
|
12-07-2020, 05:54 PM | #17 | |
Human being with feelings
Join Date: Apr 2020
Posts: 25
|
Text Shadow Effect
Hi Mordi,
Thanks for this shadow effect. However, may be I am doing something wrong. For me the shadow parameters do not seem to work. //@param10:sha 'shadow alpha' 0.3 0 1 0.5 0.01 //@param11:shy 'shadow y' 0.5 -1 1 0.5 0.01 //@param12:shs 'shadow spread' 5 0 10 5 0.05 //@param13:shi 'shadow iterations' 5 1 20 5 1 Whatever changes I make does not reflect in the text. In fact I just don't see the shadow effect. Pascal Quote:
|
|
Thread Tools | |
Display Modes | |
|
|