Old 05-21-2019, 04:46 PM   #1
woodslanding
Human being with feelings
 
woodslanding's Avatar
 
Join Date: Mar 2007
Location: Denver, CO
Posts: 389
Default Phantom argument to GetTrackName()???

I'm getting this error:

bad argument #2 to 'GetTrackName' (string expected, got no value)

coming from this line number:

else local _,name = reaper.GetTrackName(track)

but the api says:

retval, buf = reaper.GetTrackName( track )

There IS no argument #2?

Am I confused????
__________________
eric moon
Very Stable Genius
https://gogolab.com/
woodslanding is offline   Reply With Quote
Old 05-21-2019, 05:05 PM   #2
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 8,782
Default

try
Code:
else local _,name = reaper.GetTrackName(track, "")
A possible explaination why is here:
https://forum.cockos.com/showthread....35#post1989835
nofish 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:16 AM.


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