Page 1 of 1

scripting

Posted: 21 Jun 2006, 16:53
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

Posted: 21 Jun 2006, 18:07
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

Posted: 22 Jun 2006, 00:43
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.

Posted: 22 Jun 2006, 00:59
by fanany

Posted: 22 Jun 2006, 01:18
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!

Posted: 22 Jun 2006, 08:16
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!