It is currently Thu Nov 23, 2017 2:42 am


Latest GIMP Scripts & Plug-ins

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: 2884
Location: Tin from Victoria BC Canada
try
(gimp-layer-set-offsets drawable x-coord y-coord)

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

_________________
T.
Image gimplearn.net                                                                           


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 Attachment(s) (Scheme) is there a procedure to return layer's offsets?(SOLVED)

2

No new posts Move paths to different layer

13

No new posts Attachment(s) Fastest way to move layer to another document

9

No new posts GIMP Layer dont move with mouse WIN8

24

No new posts How to create new layer from text boundaries on a different layer?

2



* Login  



Powered by phpBB3 © phpBB Group