It is currently Fri Mar 29, 2024 6:27 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: How to programatically move a text layer (Scheme ScriptFu)
PostPosted: Fri Nov 10, 2017 10:28 am  (#1) 
Offline
New Member

Joined: Nov 10, 2017
Posts: 2
I have created a text layer as such:

(theLayer
(car
(gimp-text-layer-new
aimg
inText
"Sans"
32
PIXELS
)
)
)

How do I position the text layer at a given x,y coordinate? I can't find a scheme function for it.

Thanks!


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: How to programatically move a text layer (Scheme ScriptFu)
PostPosted: Fri Nov 10, 2017 10:49 am  (#2) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3970
Location: Canada
try
(gimp-layer-set-offsets drawable x-coord y-coord)

for example
(gimp-layer-set-offsets theLayer 50 60)

_________________
TinT


Top
 Post subject: Re: How to programatically move a text layer (Scheme ScriptFu)
PostPosted: Fri Nov 10, 2017 12:08 pm  (#3) 
Offline
New Member

Joined: Nov 10, 2017
Posts: 2
Thank you, Sir! Works brilliantly.


Top
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Can ScriptFu or anything in Gimp automate the creation of layer groups

7

No new posts Attachment(s) Image Layer Disappears When I Move It

4

No new posts Attachment(s) manipulate a portion of text inside a text layer using python-fu

2

No new posts script to load text file and create text layer

6

No new posts Request- Make a scriptfu out of my X Window stroke outline hack

1



* Login  



Powered by phpBB3 © phpBB Group