How do I use "tv_ReqFile" ?

A forum dedicated to George scripting questions
Post Reply
User avatar
Lukas
Posts: 526
Joined: 14 Jan 2011, 11:15
Contact:

How do I use "tv_ReqFile" ?

Post by Lukas »

How do I use tv_ReqFile?

http://wiki.tvpaint.com/index.php?title=Tv_ReqFile" onclick="window.open(this.href);return false;

Code: Select all

tv_ReqFile "title|path|name|extension"
I'm not sure what to do with this...

I need to request the user to point me to a .txt file that I've created with a different programme. So I know what it's path is. But tv_ReqFile opens a dialog with a "Save" button instead of "Open". Also, is there a way to have it start at the folder where the current project is saved?
  • Lukas Sketch Panel
  • TVPaint Pro 11.7.3
  • MacBook Pro 2018 macOS Ventura 13.4.1 + PC Windows 10
  • Wacom Cintiq 27QHD + Wacom Intuos4
  • YouTube.com/@ClubBaboo
  • YouTube.com/@FrameOrder
User avatar
Mads Juul
Posts: 3992
Joined: 02 May 2007, 19:18

Re: How do I use "tv_ReqFile" ?

Post by Mads Juul »

You can modify this basic Function to open on last used file location
http://wiki.tvpaint.fr/index.php?title= ... pattern.29
User avatar
Lukas
Posts: 526
Joined: 14 Jan 2011, 11:15
Contact:

Re: How do I use "tv_ReqFile" ?

Post by Lukas »

Thanks!

It's still weird though...

I need the user to point the script to a *.anme file. But it's a "Save" button in the requester window, and when you select the file it asks "Do you really want to save and replace?". And when you press YES, it doesn't save anything...

It works though, I can parse all the info I need from the Anme file. :)
  • Lukas Sketch Panel
  • TVPaint Pro 11.7.3
  • MacBook Pro 2018 macOS Ventura 13.4.1 + PC Windows 10
  • Wacom Cintiq 27QHD + Wacom Intuos4
  • YouTube.com/@ClubBaboo
  • YouTube.com/@FrameOrder
Post Reply