- Posts: 7
- Joined: Wed Jun 05, 2019 6:17 am
- Real Name: Kevin Washington
This won't save it's previous location, but it does part of what you want:
- Code: Select all
attrs = comp:GetAttrs()
dialog = composition:AskUser("Go to frame", { {"Frame Number", "Screw", Default = comp.CurrentTime, Min = attrs.COMPN_GlobalStart, Max = attrs.COMPN_GlobalEnd} } )
comp.CurrentTime = tonumber(dialog["Frame Number"])
It could be improved by using the UI Manager to place a window at a custom location. For applications like this, I like to put it under the cursor, but that script would take a bit more time to write than this quick-and-dirty one.