Old 05-05-2019, 07:45 AM   #201
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 2,452
Default

the error shows :

Code:
local OK, state = reaper.JS_VKeys_GetState()
if state:byte(vk[i].code) ~= 0 then  -- line 303
Can you open the script in edit mode and see if that line is red?

Its calling JS_API, and its not returning anything in your case which means its not calling reaper.JS_VKeys_GetState
Sexan is offline   Reply With Quote
Old 05-05-2019, 10:31 AM   #202
todd_r
Human being with feelings
 
todd_r's Avatar
 
Join Date: Nov 2006
Posts: 560
Default

Attached Images
File Type: png Capture.PNG (9.7 KB, 402 views)
todd_r is offline   Reply With Quote
Old 05-05-2019, 12:50 PM   #203
Edgemeal
Human being with feelings
 
Edgemeal's Avatar
 
Join Date: Apr 2016
Location: ASU`ogacihC
Posts: 1,386
Default

Quote:
Originally Posted by todd_r View Post
Area_51_Core.lua:303: attempt to index a nil value (local 'state')
I get same error with JS_API v0.985 and v0.986, so tried v0.982 (and .984) and error is gone.

With v0.985 & v0.986, both OK and state vars = nil,..
Code:
function keys() 
  local OK, state = reaper.JS_VKeys_GetState()
Win 7 / REAPER v5.976+dev0505
Edgemeal is offline   Reply With Quote
Old 05-05-2019, 01:03 PM   #204
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 2,452
Default

it seems there was some changes in JS_API,will need to ask julian about it
Sexan is offline   Reply With Quote
Old 05-05-2019, 02:48 PM   #205
ferropop
Human being with feelings
 
ferropop's Avatar
 
Join Date: Jan 2016
Posts: 488
Default

Sexan, I'm actually in the same boat. I'm a TREMENDOUS fan of everything you're doing, but it has yet to work for me haha...just watching and living through the gifs so far . There was some posting a few pages back, where people were talking about rolling back their version of JS_API with different levels of success, that might be related.
ferropop is online now   Reply With Quote
Old 05-05-2019, 02:50 PM   #206
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 2,452
Default

Well then it's definitely related to JS_API, will talk to julian to see whats new. (I'm still on 0.984, I'm deeeeeeep into coding this so I did not update anything)

Last edited by Sexan; 05-05-2019 at 02:55 PM.
Sexan is offline   Reply With Quote
Old 05-06-2019, 05:31 AM   #207
todd_r
Human being with feelings
 
todd_r's Avatar
 
Join Date: Nov 2006
Posts: 560
Default

Rolling back worked for me
todd_r is offline   Reply With Quote
Old 05-06-2019, 05:41 AM   #208
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 2,452
Default

will fix this issue for upcoming release, there were some changes in JS_API
Sexan is offline   Reply With Quote
Old 05-06-2019, 07:09 AM   #209
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 2,452
Default

Lil something for you guys
Sexan is offline   Reply With Quote
Old 05-06-2019, 07:15 AM   #210
nappies
Human being with feelings
 
nappies's Avatar
 
Join Date: Dec 2017
Posts: 131
Default

Sexan!Really cool, man!
nappies is online now   Reply With Quote
Old 05-06-2019, 07:15 AM   #211
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Posts: 2,814
Default

Quote:
Originally Posted by Sexan View Post
Lil something for you guys
Woop! Smooth as butter!
__________________
My Reascripts forum thread | My Reascripts on GitHub | Stephan Römer - film composer
If you wish to donate for my scripts: please consider an organization like: animal shelter, doctors without borders, UNICEF, etc...
_Stevie_ is online now   Reply With Quote
Old 05-06-2019, 08:01 AM   #212
ferropop
Human being with feelings
 
ferropop's Avatar
 
Join Date: Jan 2016
Posts: 488
Default

There we have it! Sexan congrats on bringing Reaper out of 1991 in regards to Selection/Copy/Paste/Delete. I mean that both cheekily and absolutely sincerely; finally we can feel confident in making project edits with this (absolutely core) tool.
ferropop is online now   Reply With Quote
Old 05-06-2019, 08:25 AM   #213
Vagelis
Human being with feelings
 
Join Date: Oct 2017
Location: Larisa, Greece
Posts: 315
Default

YAY!!
Vagelis is offline   Reply With Quote
Old 05-06-2019, 10:54 AM   #214
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 2,452
Default

Eeny, meeny, miny, moe, wonder where this paste will go

Last edited by Sexan; 05-06-2019 at 01:59 PM.
Sexan is offline   Reply With Quote
Old 05-06-2019, 01:22 PM   #215
amagalma
Human being with feelings
 
Join Date: Apr 2011
Posts: 1,503
Default

Very impressive!!!
amagalma is offline   Reply With Quote
Old 05-06-2019, 06:15 PM   #216
cool
Human being with feelings
 
Join Date: Dec 2017
Location: Sunny Siberian Islands
Posts: 161
Default

OMG! Game Changer!
cool is offline   Reply With Quote
Old 05-06-2019, 08:57 PM   #217
ferropop
Human being with feelings
 
ferropop's Avatar
 
Join Date: Jan 2016
Posts: 488
Default

Dude.

Sincerely I might cry lol.

I've been begging for EXACTLY what you've scripted, for like 8 years man. This is unreal.
ferropop is online now   Reply With Quote
Old 05-06-2019, 09:05 PM   #218
ferropop
Human being with feelings
 
ferropop's Avatar
 
Join Date: Jan 2016
Posts: 488
Default

I'm sure you're thinking this already, but as you are dragging the selection it probably shouldn't show the shadow copies until you've released the mouse. It's a bit confusing to see all these boxes showing up as you are trying to create a selection. The second you release the mouse though, that is amazing that you see the exact shape especially the long vertical bar showing where the selection starts!

This is great man.
ferropop is online now   Reply With Quote
Old 05-07-2019, 12:52 AM   #219
reapero
Human being with feelings
 
Join Date: Aug 2011
Posts: 214
Default

Awesome dude!
reapero is online now   Reply With Quote
Old 05-07-2019, 01:21 AM   #220
todd_r
Human being with feelings
 
todd_r's Avatar
 
Join Date: Nov 2006
Posts: 560
Default

That's amazing!
todd_r is offline   Reply With Quote
Old 05-07-2019, 01:55 AM   #221
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 2,452
Default

Quote:
Originally Posted by ferropop View Post
I'm sure you're thinking this already, but as you are dragging the selection it probably shouldn't show the shadow copies until you've released the mouse. It's a bit confusing to see all these boxes showing up as you are trying to create a selection. The second you release the mouse though, that is amazing that you see the exact shape especially the long vertical bar showing where the selection starts!

This is great man.
Its just a showcase, it won't behave like this. It will be triggered on shortcut copy,duplicate,whatever, I was just lazy to add a shortcut . And there is something else I'm working on regarding copy/paste/duplicate I think you guys will like
Sexan is offline   Reply With Quote
Old 05-07-2019, 08:11 AM   #222
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 2,452
Default

Well since now we (well I ATM ) can have multiple area selections the next logical thing would be to utilize them some how right?



Make them, set one active by pressing 1-9, activate copy and copy paste like a boss... AS from now on will be in different colors and their items will be in the same color as the parent AS

And I'm not done with copy pasting yet , still "SOME" things are comming

Last edited by Sexan; 05-07-2019 at 08:18 AM.
Sexan is offline   Reply With Quote
Old 05-07-2019, 09:11 AM   #223
ferropop
Human being with feelings
 
ferropop's Avatar
 
Join Date: Jan 2016
Posts: 488
Default

Amazing!

Man I hope you take all these comments/suggestions with love, I think everybody's just excited and not trying to push you to do anything cause we all know how much work it is.

...but, just a suggestion lol. Is it possible/easy to make it so that once the selection has been drawn, to extend the edges of it like you would an item? I'm just thinking when selecting a large chunk of a project, you might need to zoom in first to find the exact starting location and start the selection, then zoom out to see the full project and then extend the selection now that you have the correct starting location. Does that make sense? Right now it looks like you draw a selection and that's that, if you drag again it starts a new one.

Last edited by ferropop; 05-07-2019 at 09:17 AM.
ferropop is online now   Reply With Quote
Old 05-07-2019, 09:12 AM   #224
ferropop
Human being with feelings
 
ferropop's Avatar
 
Join Date: Jan 2016
Posts: 488
Default

Like in native Reaper, when selecting time you can zoom in as far as you want, start the time selection at the exact spot you need, then afterwards zoom out and pull the end handle to where you want it to end.
ferropop is online now   Reply With Quote
Old 05-07-2019, 09:16 AM   #225
ferropop
Human being with feelings
 
ferropop's Avatar
 
Join Date: Jan 2016
Posts: 488
Default

ferropop is online now   Reply With Quote
Old 05-07-2019, 09:17 AM   #226
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 2,452
Default

Quote:
Originally Posted by ferropop View Post
Amazing!

Man I hope you take all these comments/suggestions with love, I think everybody's just excited and not trying to push you to do anything cause we all know how much work it is.

...but, just a suggestion lol. Is it possible/easy to make it so that once the selection has been drawn, to extend the edges of it like you would an item? I'm just thinking of selecting a large chunk of a project, where you might need to zoom in first to find the exact starting location, then zoom out to see the full project and then continue the selection now that you have the correct starting location. Does that make sense? Right now it looks like you draw a selection and that's that, if you drag again it starts a new one.
Don't you worry about that , its already implemented just needs polishing. You can adjust edges etc. Here is a gif from few pages back


I need to add graphics to it, there are zones when you are mouse over it, L - C - R, I will add when you are near/in that zone line shows up so you know you can modify the AS

Last edited by Sexan; 05-07-2019 at 09:40 AM.
Sexan is offline   Reply With Quote
Old 05-07-2019, 09:42 AM   #227
hopi
Human being with feelings
 
hopi's Avatar
 
Join Date: Oct 2008
Location: Right Hear
Posts: 15,088
Default

yeah man! keep going.... that multi area selection is gonna be killer!!!

totally kewl would be way to add to selection and also remove from selection
you know like ctrl and alt usually do
__________________
...should be fixed for the next build... http://tinyurl.com/cr7o7yl
https://soundcloud.com/hopikiva/angel-rain
hopi is offline   Reply With Quote
Old 05-07-2019, 10:02 AM   #228
musicbynumbers
Human being with feelings
 
musicbynumbers's Avatar
 
Join Date: Jun 2009
Location: brighton, uk
Posts: 12,746
Default

Indeed! Very very cool!
__________________
subproject FRs click here
note: don't search for my pseudonym on the web. The "musicbynumbers" you find is not me or the name I use for my own music.
musicbynumbers is online now   Reply With Quote
Old 05-07-2019, 10:15 AM   #229
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 2,452
Default

Quote:
Originally Posted by hopi View Post
yeah man! keep going.... that multi area selection is gonna be killer!!!

totally kewl would be way to add to selection and also remove from selection
you know like ctrl and alt usually do
Like add/remove items to selection?
Sexan is offline   Reply With Quote
Old 05-07-2019, 02:35 PM   #230
Vagelis
Human being with feelings
 
Join Date: Oct 2017
Location: Larisa, Greece
Posts: 315
Default

Man you nailed it, fantastic work! Also it would be nice at some point if the mouse cursor change to a hand for example, when the mouse is over the edge of the selection .
Vagelis is offline   Reply With Quote
Old 05-07-2019, 03:54 PM   #231
hopi
Human being with feelings
 
hopi's Avatar
 
Join Date: Oct 2008
Location: Right Hear
Posts: 15,088
Default

Quote:
Originally Posted by Sexan View Post
Like add/remove items to selection?
yes.... I guess I was thinking add\remove areas to the already selected area?
but sure, if just add\remove items that would be good don't ya think?

I have no idea what is or is not possible.... %^(
__________________
...should be fixed for the next build... http://tinyurl.com/cr7o7yl
https://soundcloud.com/hopikiva/angel-rain
hopi is offline   Reply With Quote
Old 05-08-2019, 10:58 AM   #232
Delucci
Human being with feelings
 
Join Date: May 2017
Posts: 143
Default

Available on ReaPack soon?
Delucci is online now   Reply With Quote
Old 05-08-2019, 11:07 AM   #233
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 2,452
Default

There is still some work to be done.ATM I'm dealing (successfully) with CPU usage and some other issues.
Sexan is offline   Reply With Quote
Old 05-08-2019, 11:44 AM   #234
Delucci
Human being with feelings
 
Join Date: May 2017
Posts: 143
Default

That's okay, you are making an awesome feature long time requested here
Delucci is online now   Reply With Quote
Old 05-08-2019, 11:48 AM   #235
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 2,452
Default

Quote:
Originally Posted by hopi View Post
yes.... I guess I was thinking add\remove areas to the already selected area?
but sure, if just add\remove items that would be good don't ya think?

I have no idea what is or is not possible.... %^(
Oh you mean "deleting" already existing AS?
Sexan is offline   Reply With Quote
Old 05-08-2019, 04:31 PM   #236
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 2,452
Default

Sexan is offline   Reply With Quote
Old 05-08-2019, 04:36 PM   #237
nappies
Human being with feelings
 
nappies's Avatar
 
Join Date: Dec 2017
Posts: 131
Default

OMG!

nappies is online now   Reply With Quote
Old 05-08-2019, 04:39 PM   #238
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 6,041
Default

@Sexan
WTF !!! Hilarious !!
X-Raym is offline   Reply With Quote
Old 05-08-2019, 04:41 PM   #239
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 2,452
Default

and they say I'm not innovative....
Sexan is offline   Reply With Quote
Old 05-08-2019, 11:34 PM   #240
reapero
Human being with feelings
 
Join Date: Aug 2011
Posts: 214
Default

Hahaha...

But seriously..release it!
reapero is online now   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 12:42 PM.


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