09-07-2015, 11:06 AM
|
#1 |
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 11,104
|
When using complex custom actions ivolving moving items or moving the cursor several times, we can see the display changing very fast.
Actually, to avoid that, when I use a complex custom actions, I add PreventUIRefresh with two scripts, at the end and at the bottom of the action. Scripts (EEL): Prevent UI Refresh for Custom Actions Maybe we could have a simple checkbox "PreventUIRefresh" below Consolidates Undo Point ? It would be very useful, way more handy than adding these scripts manually in each custom actons. There is rare cases for which no ui refresh is needed in a complex macro. Thanks for listening !
__________________
Free ReaScripts - Premium Scripts - Custom Scripts Dev - Learn ReaScript - XR Theme - Stash Files - ReaLinks - ReaComics - Donation |
|
|
09-07-2015, 11:53 AM
|
#2 |
|
Human being with feelings
Join Date: Jul 2012
Location: Netherlands
Posts: 5,247
|
Wow, this is great ; very welcome to me ; i hate those screen redraws .. haha.
Thanx X-Raym ! I will use your script in my intensive scripts and meanwhile dreaming of this functionality built in Reaper by Devs .. :0) |
|
|
09-07-2015, 02:32 PM
|
#3 |
|
Human being with feelings
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
|
Lovely idea. +1
__________________
I'm no longer using Reaper or working on scripts for it. Sorry. :( Default 5.0 Nitpicky Edition / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate |
|
|
09-15-2015, 02:58 AM
|
#4 |
|
Human being with feelings
Join Date: Oct 2013
Location: Moscow, Russia
Posts: 4,670
|
Custom action is text with action IDs so anyway we need native actions which will be added into custom action in kb.ini by clicking suggested option check.
|
|
|
09-23-2015, 04:35 AM
|
#5 |
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 11,104
|
Because pf the new PreventUIRefresh preventing error system introduced recently, the trick that involves using my PreventUIRefresh trick doesn't work anymore.
This anti-bug system is really nice and save me a lot of time in scripting, but we really need a way to be able to prevent UI refresh for custom actions. An other good reason to have a checkbox for this on the Create custom action window.
__________________
Free ReaScripts - Premium Scripts - Custom Scripts Dev - Learn ReaScript - XR Theme - Stash Files - ReaLinks - ReaComics - Donation |
|
|
10-06-2015, 07:28 AM
|
#6 |
|
Human being with feelings
Join Date: Jan 2012
Posts: 1,292
|
Yes absolutely.
There are a number of my custom actions (and some single SWS actions) that create jittery graphics. A tickbox that simplifies the UI refresh to the start and end of a custom action would help reaper feel way smoother to use.
__________________
Mixing / Brush and Beater Drums Online: www.outoftheboxsounds.com |
|
|
10-06-2015, 08:01 AM
|
#7 |
|
Human being with feelings
Join Date: Jul 2012
Location: Netherlands
Posts: 5,247
|
↑↑↑↑ This !
|
|
|
10-06-2015, 09:27 AM
|
#8 |
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 11,104
|
Actually, I wonder in what circumstance we would not need this. Maybe it should be global, for all custom actions ?
__________________
Free ReaScripts - Premium Scripts - Custom Scripts Dev - Learn ReaScript - XR Theme - Stash Files - ReaLinks - ReaComics - Donation |
|
|
02-22-2016, 08:16 PM
|
#9 |
|
Human being with feelings
Join Date: Mar 2013
Posts: 6
|
yes please implement this. one of my most frequent shortcuts desperately needs this (increase to maximum waveform gain which is 40x duplicate waveform gain actions in a row because there is no appropriate action for this otherwise).
|
|
|
02-23-2016, 02:20 AM
|
#10 |
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 11,104
|
The implementation of this function is up to cockos :P
Meanwhile, if you need to have a serie of actions without UI refresh, you can create a simple scripts that start and ends with the choosen action, and have call to this actions inbetween. I made a template for you. ReaScripts-Templates/X-Raym_Custom actions with UI refresh prevention.lua at master · ReaTeam/ReaScripts-Templates
__________________
Free ReaScripts - Premium Scripts - Custom Scripts Dev - Learn ReaScript - XR Theme - Stash Files - ReaLinks - ReaComics - Donation |
|
|
06-06-2016, 01:25 PM
|
#11 |
|
Human being with feelings
Join Date: Jul 2009
Posts: 8,346
|
need this today. when a cycle action makes a selection the screen flashes are very annoying and you can't help but think the whole thing would run faster without updating the GUI for each loop.
__________________
REAPER Video Tutorials, Tips & Tricks and more at The REAPER Blog
|
|
|
06-06-2016, 03:04 PM
|
#12 |
|
Human being with feelings
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
|
X-Raym, could you do it with two scripts?
1: - PreventUIRefresh(1) - defer loop checking some ExtState's value - when the ExtState returns 1, PreventUIRefresh(-1), set the ExtState to 0 again 2: - Set the ExtState to 1 Then you just build your custom action like so: Script 1 Action stuff Action stuff Action stuff Script 2 I don't know how the PreventUIRefresh error checking you mentioned works, but it seems to me like this should work - the original script is running the entire time, so if the error checking is looking for scripts exiting it won't get caught.
__________________
I'm no longer using Reaper or working on scripts for it. Sorry. :( Default 5.0 Nitpicky Edition / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate |
|
|
06-06-2016, 04:32 PM
|
#13 |
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 11,104
|
@Lokasenna
No need for defer script, having Main_OnCommand inside to PreventUIRefresh is enough ReaScripts-Templates/X-Raym_Custom actions with UI refresh prevention.lua at master · ReaTeam/ReaScripts-Templates But it is not really a plug and play solution accessible to everyone.
__________________
Free ReaScripts - Premium Scripts - Custom Scripts Dev - Learn ReaScript - XR Theme - Stash Files - ReaLinks - ReaComics - Donation |
|
|
06-06-2016, 08:39 PM
|
#14 |
|
Human being with feelings
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
|
That's what I meant - using two separate actions makes it easy for people to use in their custom actions without making them fiddle with Lua.
Anyway, I tried it and it doesn't seem to work. Even with the initial script setting PreventUIRefresh(1) I can still see the individual actions happening. Oh well.
__________________
I'm no longer using Reaper or working on scripts for it. Sorry. :( Default 5.0 Nitpicky Edition / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate |
|
|
06-07-2016, 02:58 AM
|
#15 |
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 11,104
|
@Lokasenna
Inddeed, that is the point : this trick (having them in two separate actions) use to work and it works nicely. In REAPER 5.1 (approx) a bug fix has been introduced to prevent orhelins PreventUIRefresh in scripts. It is a very nice geature because in Lua, we used to break the UI refresh very often. But now, we need a new way to add prevent UI refresh for custom action.
__________________
Free ReaScripts - Premium Scripts - Custom Scripts Dev - Learn ReaScript - XR Theme - Stash Files - ReaLinks - ReaComics - Donation |
|
|
08-01-2016, 11:21 AM
|
#16 |
|
Human being with feelings
Join Date: Jul 2016
Posts: 100
|
Bumping this.
This feature is sorely needed! Would greatly help to make reaper look and feel more 'solid' Seeing the UI go mental as I navigate with my custom actions makes reaper feel less solid than it really is. It's mainly a psychological thing (as-well as performance I hope) and is essential to making custom actions feel less clunky and also therefore turning reaper into a more attractive product to potential new users. Cheers! H |
|
|
11-27-2019, 02:33 PM
|
#18 |
|
Human being with feelings
Join Date: Mar 2019
Posts: 438
|
Is this still not possible?
|
|
|
06-14-2020, 01:44 PM
|
#19 |
|
Human being with feelings
Join Date: Sep 2019
Posts: 1,605
|
It gets my vote as well
|
|
|
06-14-2020, 02:32 PM
|
#20 | |
|
Human being with feelings
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,495
|
SWS cycle actions can now be used as a workaround.
From the SWS v2.12.0 pre-release changelog: Quote:
|
|
|
|
06-14-2020, 04:45 PM
|
#21 |
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 11,104
|
Thanks nofish for the trick !
__________________
Free ReaScripts - Premium Scripts - Custom Scripts Dev - Learn ReaScript - XR Theme - Stash Files - ReaLinks - ReaComics - Donation |
|
|
05-17-2021, 04:19 PM
|
#22 | |
|
Human being with feelings
Join Date: Jun 2019
Posts: 3,188
|
Quote:
This is the cycle action I am using: And this is how it looks like (Licecap is not best to show this due too low framerate but it should still be clear what is happening):
|
|
|
|
05-19-2021, 10:42 AM
|
#23 |
|
Human being with feelings
Join Date: Oct 2019
Location: Moscow / Tbilisi
Posts: 1,314
|
Yes, I don't see a reason for haven't prevent UI refresh by default for all actions. Maybe it could switch off during record to smooth display recording.
|
|
|
06-15-2021, 09:47 AM
|
#24 |
|
Human being with feelings
Join Date: May 2017
Posts: 325
|
Well I was looking for something like this and stumbled in people saying about Cycle Actions doing the job, worked like a charm!
Thanks so much for that. |
|
|
07-14-2021, 06:30 AM
|
#25 |
|
Human being with feelings
Join Date: Sep 2019
Posts: 1,605
|
The cycle action editor has Prevent UI refresh checkbox? Doesn't it work?
__________________
♦ https://github.com/Buy-One/REAPER-scripts (264) Latest: Display a single envelope at a time cycling forward/backwards.lua |
|
|
07-14-2021, 07:07 AM
|
#26 | |
|
Human being with feelings
Join Date: Jun 2019
Posts: 3,188
|
Quote:
|
|
|
|
07-14-2021, 07:51 AM
|
#27 | |
|
Human being with feelings
Join Date: Sep 2019
Posts: 1,605
|
Quote:
__________________
♦ https://github.com/Buy-One/REAPER-scripts (264) Latest: Display a single envelope at a time cycling forward/backwards.lua |
|
|
|
![]() |
| Thread Tools | |
|
|