Old 06-07-2019, 06:21 AM   #561
deeb
Human being with feelings
 
deeb's Avatar
 
Join Date: Feb 2017
Posts: 4,820
Default

In my point just paste if matched. Allowing pasting and create things magically is confusing as default .. and if destiny track does not have some specific envelope from a specific FX in target? And if that destiny has 2 or more instances with same effect/parameter in the chain? Which envelope would be created? Making things under the table with many conditions could be modes, but as default : what you see what you get I think is the most expected behaviour.
Sorry just my opinion

Last edited by deeb; 06-07-2019 at 06:31 AM.
deeb is offline   Reply With Quote
Old 06-07-2019, 07:52 AM   #562
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 4,689
Default

Thats what I wanted to make for default:
Copy and paste everything selected so the destination would be the same as source. Then we can have modifiers that will copy only matched to matched etc.

If you selected 5 envelopes the first thing that is expected is you want to paste all 5 somewhere.

IMO this is logical.

Every behavior next is bonus and should be on modifier
Sexan is offline   Reply With Quote
Old 06-07-2019, 09:52 AM   #563
hopi
Human being with feelings
 
hopi's Avatar
 
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
Default

ok got the folder structure right and core.lua outside that folder

and set the core to remember to terminate so hopefully it toggle on and off with the hot key
but notice sometimes when terminating is will leave patches of the blue area on the screen... I know WIP but just saying
__________________
...should be fixed for the next build... http://tinyurl.com/cr7o7yl
https://soundcloud.com/hopikiva
hopi is offline   Reply With Quote
Old 06-07-2019, 10:54 AM   #564
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 4,689
Default

Quote:
Originally Posted by hopi View Post
ok got the folder structure right and core.lua outside that folder

and set the core to remember to terminate so hopefully it toggle on and off with the hot key
but notice sometimes when terminating is will leave patches of the blue area on the screen... I know WIP but just saying
It will leave little area dudes on the screen when script crashes or something else. Thats why I want to make it stable as possible so little areas wont be a problem.

There are many cases when this can happen and I want to make it minimal as possible for public testing
Sexan is offline   Reply With Quote
Old 06-08-2019, 01:43 PM   #565
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 4,689
Default

For people that get easily excited new WIP version is up so you can play with it (Git WIP folder):

just copy all scripts to same folder and you are good to go (its not the same structure as before, now all scripts need to be in the same place thats it)

start clean script have fun with copy paste and delete (items only atm)

ctrl + c activates copy mode (ghosts)
ctrl + v does not need explanation
ESC removes all AS copy mode etc

and currently delete is on "X" since my goddamn delete key stopped working (maybe I've killed it...)

Pasting envelopes is on the way, just to make them stable not crashing etc

Also zones are going thru refactoring so they also do not work ATM

Happy selecting! (dont get too wild with it )

Last edited by Sexan; 06-08-2019 at 01:50 PM.
Sexan is offline   Reply With Quote
Old 06-08-2019, 02:15 PM   #566
timothys_monster
Human being with feelings
 
timothys_monster's Avatar
 
Join Date: Jan 2012
Location: Germany
Posts: 1,133
Default

Yessss everyday it's getting better and better. Love the delete, copy, paste functions already. Will you try to preserve the AS while navigating the arrange view (scrolling and zooming)?
timothys_monster is offline   Reply With Quote
Old 06-08-2019, 02:18 PM   #567
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 4,689
Default

Thats already implemented, you can scroll zoom do whatever you want AS stays where you made it. It lags a bit but that cannot be fixed (reaper refreshes some values only when mouse stop moving for example scrolling, hand move etc)
Sexan is offline   Reply With Quote
Old 06-08-2019, 02:30 PM   #568
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,067
Default

Not sure if we are supposed to report issues already, but that's what I get when executing the script:

...ing\REAPER\Scripts\Sexan_Scripts\Alpha\Area_51_ clean.lua:70: attempt to index a nil value (field '?')
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is offline   Reply With Quote
Old 06-08-2019, 02:33 PM   #569
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 4,689
Default

Yeah you can start reporting, but not sure whats that on your end. It cannot find LastTrack?

You have everything installed JS ? Platform? Remove all other old scripts

BTW this one has mouse debugging enabled so you will see one big screen with mouse stuff, you can close it
Sexan is offline   Reply With Quote
Old 06-08-2019, 02:35 PM   #570
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,067
Default

Hm, that's strange indeed. Clicked around a bit (I guess that's how last track is created?) and still nothing. Let me try on a portable install.
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is offline   Reply With Quote
Old 06-08-2019, 02:38 PM   #571
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 4,689
Default

It does not matter if you have tracks or not script should start. I've just tested on my notebook everything works fine (downloaded from my git). That last track things is only for tracking height changes in the project.

BTW there are still some critical bugs which I am aware of and fixing them like deleting one of the AS tracks while AS is active.

Report bugs regarding copy,delete,paste or any strange AS behavior
Sexan is offline   Reply With Quote
Old 06-08-2019, 02:41 PM   #572
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,067
Default

Not sure why, but there's something on my default template what Area 51 doesn't like. I make extensive use of Track Inspector and LBX Stripper. Can't tell for sure, but maybe these scripts write some data that AS51 doesn't like?

I just tried a complete empty project and there everything works.
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is offline   Reply With Quote
Old 06-08-2019, 02:45 PM   #573
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 4,689
Default

That error you posted is regarding project last track . It cant find it in the table where all tracks are (not sure if that table is made on your end thats why it maybe crashes). That table is the core thing of the whole script. Can you pinpoint which of those two scripts are making problems? Can you play around a bit to find the issue?

I can test LBX but cannot inspector since I do not have it
Sexan is offline   Reply With Quote
Old 06-08-2019, 02:45 PM   #574
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
Default

Debugging is much easier if you have the entire stack trace to look at. You can wrap your entire main function with xpcall to have it use a custom error handler if the script crashes.

I use the template here for my GUI, so if a script goes down the user can copy the entire error report for you to work with: https://github.com/ReaTeam/ReaScript...%20console.lua
__________________
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
Lokasenna is offline   Reply With Quote
Old 06-08-2019, 02:48 PM   #575
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 4,689
Default

Thank you very much!
Sexan is offline   Reply With Quote
Old 06-08-2019, 02:49 PM   #576
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,067
Default

@Sexan: it's really hard to tell what causes the problem. However, it also happens, when I have all scripts closed. I can provide you my template, if that helps.
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is offline   Reply With Quote
Old 06-08-2019, 02:50 PM   #577
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 4,689
Default

Will implement the template above Lokasenna provided and then we will see
Sexan is offline   Reply With Quote
Old 06-08-2019, 02:52 PM   #578
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,067
Default

Awesome!
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is offline   Reply With Quote
Old 06-08-2019, 03:04 PM   #579
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 4,689
Default

Download it again, debugger is now there.

Also updated first post with link to latest WIP version

Last edited by Sexan; 06-08-2019 at 03:09 PM.
Sexan is offline   Reply With Quote
Old 06-08-2019, 03:09 PM   #580
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,067
Default

Error: Area_51_clean.lua:105: attempt to index a nil value (field '?')

Stack traceback:
Area_51_clean.lua:16: in function 'crash'
Area_51_clean.lua:105: in function 'Status'
Area_51_class.lua:178: in function 'Draw'
Area_51_clean.lua:572: in function <...a\Roaming\REAPER\Scripts\Sexan_Scripts\Area_51 _clean.lua:559>
[C]: in function 'xpcall'
Area_51_clean.lua:559: in function <...a\Roaming\REAPER\Scripts\Sexan_Scripts\Area_51 _clean.lua:558>

Reaper: 5.978+dev0606a/x64
Platform: Win64
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is offline   Reply With Quote
Old 06-08-2019, 03:14 PM   #581
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 4,689
Default

This does not make any sense, it cant find last track,,, can you give me that template?
Sexan is offline   Reply With Quote
Old 06-08-2019, 03:21 PM   #582
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,067
Default

Yep sure, here you go:
https://www.dropbox.com/s/c5yhgyal2n...201.0.rpp?dl=0
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is offline   Reply With Quote
Old 06-08-2019, 03:27 PM   #583
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 4,689
Default

Found the issue... track is hidden, when unhiding it everything works.

Will need to make get last visible track, since all track height changes are reflected to last track its easier to track last track than every track in project
Sexan is offline   Reply With Quote
Old 06-08-2019, 03:30 PM   #584
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,067
Default

Hah okay, that was easy!
Yeah, I'm working witha lot of hidden tracks, mainly folders and VCA.
I only show them, when I need to make changes there.
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is offline   Reply With Quote
Old 06-08-2019, 03:32 PM   #585
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 4,689
Default

I just hope hidden tracks wont affect on track offsets and other stuff. Ok this is the next on todo list for tomorrow because maybe it will require to change lots of stuff
Sexan is offline   Reply With Quote
Old 06-08-2019, 03:34 PM   #586
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,067
Default

Arggg, I'm really sorry if this is causing huge problems now!
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is offline   Reply With Quote
Old 06-08-2019, 03:38 PM   #587
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 4,689
Default

Its for the better good! And schwa!

No this is a big issue I need to fix. One of those scenarios I did not thought of. There is million thing I need to make/fix I have like 5 todo lists and non of them is for hidden tracks . Cant think on all of the stuff.

But maybe its just 1 line of code
Sexan is offline   Reply With Quote
Old 06-08-2019, 03:40 PM   #588
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,067
Default

Yeah, these damn corner cases
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is offline   Reply With Quote
Old 06-08-2019, 04:57 PM   #589
ferropop
Human being with feelings
 
ferropop's Avatar
 
Join Date: Jan 2016
Location: Los Angeles, CA
Posts: 3,127
Default

Keep going man, this is the biggest gift the Reaper community is getting without even realizing it.
ferropop is online now   Reply With Quote
Old 06-08-2019, 05:12 PM   #590
mehmethan
Human being with feelings
 
mehmethan's Avatar
 
Join Date: Jun 2011
Posts: 610
Default

I downloaded all 5 scripts from WIP folder and put all of them them into scripts folder.

I'm having this message when I run them .

Area_51_clean.lua:7: unexpected symbol near '<'
mehmethan is offline   Reply With Quote
Old 06-09-2019, 12:59 AM   #591
TeaBone
Human being with feelings
 
Join Date: Jul 2009
Location: Germany
Posts: 43
Default

Quote:
Originally Posted by mehmethan View Post
I downloaded all 5 scripts from WIP folder and put all of them them into scripts folder.

I'm having this message when I run them .

Area_51_clean.lua:7: unexpected symbol near '<'
Yeah, me too :/

But what a wonderful addition!!
TeaBone is offline   Reply With Quote
Old 06-09-2019, 01:33 AM   #592
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 4,689
Default

How did you guys downloaded the script?

You have all requirements (JS_API)?

that error appears when the script is wrongly downloaded
Sexan is offline   Reply With Quote
Old 06-09-2019, 02:14 AM   #593
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 4,689
Default

@_Stevie_

New WIP update:
Code:
Fixed issues when working with hidden tracks
Added function to set last visible track as last project track
Added function to find first next visible track if the current one is hidden
Modified the way track offset works to account hidden tracks
Fixed script crash when one of the active AS tracks is deleted -- Still needs tuning
My track offset now works exactly like reapers when working with hidden tracks (tried copy pasting with reaper and my script, results are exactly the same.

Also latest WIP script can now be found in my signature for easier finding...

Last edited by Sexan; 06-09-2019 at 02:40 AM.
Sexan is offline   Reply With Quote
Old 06-09-2019, 05:27 AM   #594
TeaBone
Human being with feelings
 
Join Date: Jul 2009
Location: Germany
Posts: 43
Default

Quote:
Originally Posted by Sexan View Post
How did you guys downloaded the script?

You have all requirements (JS_API)?

that error appears when the script is wrongly downloaded
I downloaded all 5 scripts and put them in a folder called "Area 51" inside REAPER's scripts-folder. Then I imported the "ReaTeam Extensions" repository, from which I installed "JS_ReaScriptAPI".

Additional thought:
It seems as if the script has a problem with the exclamation mark in <!DOCTYPE html>

Last edited by TeaBone; 06-09-2019 at 05:33 AM. Reason: Additional thoughts
TeaBone is offline   Reply With Quote
Old 06-09-2019, 05:37 AM   #595
TeaBone
Human being with feelings
 
Join Date: Jul 2009
Location: Germany
Posts: 43
Default I'm, stupid

AAHHH!

This is what happens, when one tries to save a link to a file! <facepalm>
Instead of having the lua code inside my *.lua files, I just had a lot of html-content. I will copy the code by hand...

Ok, here's the result:

Error: Area_51_mouse.lua:83: attempt to perform arithmetic on a nil value (field 'ox')

Stack traceback:
Area_51_clean.lua:16: in function 'crash'
Area_51_mouse.lua:83: in function 'OnMouseHold'
Area_51_mouse.lua:202: in function 'GetMouseInfo'
Area_51_clean.lua:585: in function <...AppData\Roaming\REAPER\Scripts\Area 51\Area_51_clean.lua:581>
[C]: in function 'xpcall'
Area_51_clean.lua:581: in local 'Main'
Area_51_clean.lua:635: in main chunk

Reaper: 5.978/x64
Platform: Win64


I'm on Windows 10 Pro by the way...

Last edited by TeaBone; 06-09-2019 at 05:47 AM. Reason: Results
TeaBone is offline   Reply With Quote
Old 06-09-2019, 05:55 AM   #596
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 4,689
Default

I think something got lost while you copied. Try this:

open every script with RAW button,save As and remove .txt from the end
Sexan is offline   Reply With Quote
Old 06-09-2019, 07:46 AM   #597
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,067
Default

Quote:
Originally Posted by Sexan View Post
@_Stevie_

New WIP update:
Awesome man, this works great! Can't believe it really

A question about the conception:

Is it planned to ignore mouse modifiers while the script is running?
At the moment, I have to turn off a lot of them, beacuse they interfere
with Area51, for example: Track -> left drag -> "default action" and "shift".
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is offline   Reply With Quote
Old 06-09-2019, 08:00 AM   #598
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 4,689
Default

yeah, input script will do that, atm its not intercepting anything.I have some WIP intetcepting but i need to polish it
Sexan is offline   Reply With Quote
Old 06-09-2019, 08:01 AM   #599
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,067
Default

Quote:
Originally Posted by Sexan View Post
yeah, input script will do that, atm its not intercepting anything.I have some WIP intetcepting but i need to polish it
All good, just wanted to mention it! Superb work so far!
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is offline   Reply With Quote
Old 06-09-2019, 08:08 AM   #600
TeaBone
Human being with feelings
 
Join Date: Jul 2009
Location: Germany
Posts: 43
Default

Quote:
Originally Posted by Sexan View Post
I think something got lost while you copied. Try this:

open every script with RAW button,save As and remove .txt from the end
I did that, but the error message remains the same:

Error: Area_51_mouse.lua:83: attempt to perform arithmetic on a nil value (field 'ox')

Stack traceback:
Area_51_clean.lua:16: in function 'crash'
Area_51_mouse.lua:83: in function 'OnMouseHold'
Area_51_mouse.lua:202: in function 'GetMouseInfo'
Area_51_clean.lua:585: in function <...AppData\Roaming\REAPER\Scripts\Area 51\Area_51_clean.lua:581>
[C]: in function 'xpcall'
Area_51_clean.lua:581: in local 'Main'
Area_51_clean.lua:635: in main chunk

Reaper: 5.978/x64
Platform: Win64


Since the error message refers to mouse coordinates, I possibly should add that my display resolution is 3840 x 1080 pixels. Maybe that's a corner case...
TeaBone is offline   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 07:19 PM.


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