Scripting - cursorPosition

All topics on WaveLab 9 and WaveLab Elements 9
Post Reply
lavaita
New Member
Posts: 2
Joined: Sat Nov 24, 2018 10:21 pm
Contact:

Scripting - cursorPosition

Post by lavaita »

I've been trying to write a bit of script, and whilst troubleshooting it I've written another (much simpler) piece of script to just display the current numbers for various variables.

Everything about this works, except the part where it's supposed to report the cursor position

Code: Select all

logWindow.printInfo("This wave file has " + activeWave.size() + " samples");
logWindow.printInfo("Its sample rate is " + activeWave.sampleRate());
logWindow.printInfo("It has " + activeWave.numChannels() + " channels");
logWindow.printInfo("The cursor is at " + cursorPosition() + " samples");
The error I'm getting is "Can't find variable: cursorPosition"
Can anyone see what I'm doing wrongly?

PG
Moderator
Posts: 7797
Joined: Wed Dec 15, 2010 6:15 pm
Contact:

Re: Scripting - cursorPosition

Post by PG »

You must write:

Code: Select all

activeWave.cursorPosition()
and not only

Code: Select all

cursorPosition()
Philippe

lavaita
New Member
Posts: 2
Joined: Sat Nov 24, 2018 10:21 pm
Contact:

Re: Scripting - cursorPosition

Post by lavaita »

Thank you!

Post Reply

Return to “WaveLab Pro 9 | WaveLab Elements 9”

Who is online

Users browsing this forum: No registered users and 1 guest