scripting

Please use this part to report bugs & errors, ask questions & "How to..."
Post Reply
User avatar
malcooning
Posts: 2114
Joined: 29 Mar 2006, 12:43
Location: Tel Aviv
Contact:

scripting

Post by malcooning »

Where can I find help on scripting for TVP?

At the moment I'm interested in creating a Button that will resize a project to a specific size, and then merge all visible layers. Is it possible with the routinal customization, or do I need a script for it?

Cheers
Manuel
Posts: 673
Joined: 09 Feb 2006, 14:09
Location: France-Moselle

Post by Manuel »

You can do this without complex scripting :

1) Add a new action to a custom toolbar.
2) Enter the 2 commands scripts :
tv_ResizePage 320 256 2
tv_LayerMergeAll


320 256 is the size
2 tells TVPA to scale the project
Manuel
User avatar
malcooning
Posts: 2114
Joined: 29 Mar 2006, 12:43
Location: Tel Aviv
Contact:

Post by malcooning »

Thanks Manuel, it works great!
But this one Scales the project, and after that it does not allow to undo this and return to the previous project size. What command should I add if I want to first open the same project in a new window, and then do the resize. (same like when you modify a project, it opens the modified file in a new window).

In fact, how can I know what script lines I can use? Are they listed somewhere?

Thanks,
A.
fanany
Posts: 89
Joined: 04 Apr 2006, 22:00
Location: escalierA

Post by fanany »

User avatar
malcooning
Posts: 2114
Joined: 29 Mar 2006, 12:43
Location: Tel Aviv
Contact:

Post by malcooning »

I read Fanany's suggestion, which is an extention of yours, at the Digital Art Oasis. It does require to hit Enter in the process, but it opens the file in a new window.

Cheers!
Attachments
resize.jpg
resize.jpg (24.98 KiB) Viewed 17404 times
User avatar
A1
Posts: 176
Joined: 22 Mar 2006, 10:20

Post by A1 »

Maybe it would be interesting to implement an action recording panel in tvpaint, a bit like photoshop has.
That way repetitive actions would be easely adressed. And it so happens animation has a lot of repetitive actions. :D
anyway,
just a thought towards the tvpaint team.
cheers!
Post Reply