Old 07-23-2022, 04:57 AM   #1
inframan
Human being with feelings
 
Join Date: Apr 2009
Posts: 91
Default How to do in Lua: SetPlayPosition(number:time)

the API provides these for manipulating the edit cursor
Code:
  position = reaper.GetCursorPosition()
  reaper.SetEditCurPos(position, boolean moveview, boolean seekplay )
but for play position I can only find
Code:
  playposition = reaper.GetPlayPosition()
I would love to have something like reaper.SetPlayPosition(playposition).

I can imagine a couple of slightly clumsy workarounds, such as first set a marker or time selection then go-to marker or go-to time selection (then clear the marker/selection if no longer needed).

But it seems there oughta be a single direct script action to do this.

Am I missing something?
inframan is offline   Reply With Quote
Old 07-23-2022, 05:49 AM   #2
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,107
Default

Setting seekplay to true should do what you want I think, no?
nofish is offline   Reply With Quote
Old 07-23-2022, 06:10 AM   #3
inframan
Human being with feelings
 
Join Date: Apr 2009
Posts: 91
Default

Quote:
Originally Posted by nofish View Post
Setting seekplay to true should do what you want I think, no?
BINGO !

thanks nofish - I guessed there must be an easy solution, and there it was, right under my nose !
inframan 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 11:49 PM.


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