Using George to press the ENTER key

A forum dedicated to George scripting questions
Post Reply
Svengali
Posts: 1577
Joined: 28 Dec 2006, 10:08

Using George to press the ENTER key

Post by Svengali »

I was wondering if there is some undocumented command or magic number that can be used to simulate physically pressing the ENTER key?

Issuing a tv_redo and tv_reapply command does not work when I try to script an "update" of the layer warp mode.

thanks, Sven
Svengali
Posts: 1577
Joined: 28 Dec 2006, 10:08

Re: Using George to press the ENTER key

Post by Svengali »

anyone? Some suggestion on how to force an update of the Warp deformation on a layer with some command in George?

Sven
User avatar
Hervé
Site Admin
Posts: 3490
Joined: 08 Feb 2006, 17:00
Location: Metz France
Contact:

Re: Using George to press the ENTER key

Post by Hervé »

Hi Swen
"tv_reapply" do exactly the same things than the enter key.
Maybe you should activate the Warp deformation tools with "tv_setactiveshape wrap"
Hervé ADAM, TVPaint Team
Svengali
Posts: 1577
Joined: 28 Dec 2006, 10:08

Re: Using George to press the ENTER key

Post by Svengali »

Thanks Hervé,

You are right. Unfortunately, I was just putting the tv_Reapply command in the wrong place. It's working now.

As for Wrap vs. Warp command... I've been aware of that anomaly for a while, after spending an hour one day looking for a bug and discovering it was a "spelling" bug. :P

In my WarpCutBrush script, I'm dropping the cutbrush onto a temporary layer, activating layer warping, then picking the warped brush up again (after executing the tv_reapply command 8) ) finally deleting the temporary layer. It works well but I'd still like to see a cutbrush warp option integrated into the next update. :roll:

Sven
User avatar
ZigOtto
Posts: 4102
Joined: 17 Feb 2006, 22:50
Location: south-Petazonia

Re: Using George to press the ENTER key

Post by ZigOtto »

Svengali wrote:... It works well but I'd still like to see a cutbrush warp option integrated into the next update. :roll:

Sven
+1 for a Brush-Warping tool integration . 8)

another thing,
is it possible with George to set the antialiasing option of the position/warp tools to "Best" ?
maybe an argument such as :
tv_Set ActiveShape Wrap subpixel 2
...?
Post Reply