Old 05-08-2016, 04:16 PM   #1
Garrick
Human being with feelings
 
Garrick's Avatar
 
Join Date: Jul 2009
Location: Wellington
Posts: 4,622
Default Newby Lua gfx

Code:
gfx.init("Garrick learnin lua",500,150,0,100,100)
for i = 20,100,20 do
gfx.line(i,20,i,50)
end
Ok great so far, I've managed to open a window and the draw some lines into it.

Do you think it's possible to select an item with reaper.GetSelectedMediaItem, and then overlay the above gfx.line s over the item in the arrange?
Garrick is offline   Reply With Quote
Old 05-08-2016, 05:16 PM   #2
heda
Human being with feelings
 
heda's Avatar
 
Join Date: Jun 2012
Location: Spain
Posts: 7,239
Default

I don't think so.
They are drawn in the dedicated window.
heda is offline   Reply With Quote
Old 05-08-2016, 05:24 PM   #3
Garrick
Human being with feelings
 
Garrick's Avatar
 
Join Date: Jul 2009
Location: Wellington
Posts: 4,622
Default

I thought as much, thanks for the answer Heda

I'll continue to study mpl's scripts where he draws the waveform into that window.
baby steps for me.
Garrick 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 10:30 PM.


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