It is currently Tue Aug 25, 2026 11:32 pm


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: 4528
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 ]



* Login  



Powered by phpBB3 © phpBB Group