$txt['backtotheindex_enabled'] = 'Enable the Back to the index mod'; $txt['backtotheindex_title'] = 'Title for the Back to the index menu button'; $txt['backtotheindex_href'] = 'Link (URL) for the Back to the index menu button'; $txt['backtotheindex_position'] = 'Position of the Back to the index button'; $txt['backtotheindex_beginofmenu'] = 'At the beginning of the menu (before Home button)'; $txt['backtotheindex_endofmenu'] = 'At the end of the menu (after Logout/Register button)'; $txt['costa_topico_fixo'] = 'Sticky Topics'; $txt['costa_topico_normal'] = 'Normal Topics'; $txt['date_registered'] = 'Join Date'; $txt['display_join_date'] = 'Show join date in topic view:'; $txt['embed'] = 'Insert Embed'; // Begin BoardHover $txt['boardhover'] = 'BoardHover'; $txt['linktree_hover'] = 'Adjust the Linktree settings'; $txt['enable_linktree_hover'] = 'Enable navigation tree hover for all users:'; $txt['disable_linktree_first_page'] = 'Remove navigation tree from front page:'; // End BoardHover // SMFPacks Shoutbox --> $txt['sba_title'] = 'Shoutbox'; $txt['sba_link'] = 'Shoutbox'; $txt['permissiongroup_shoutbox'] = 'Shoutbox'; $txt['permissiongroup_simple_shoutbox'] = 'Shoutbox'; $txt['permissionname_shoutbox_view'] = 'View Shoutbox'; $txt['permissionname_shoutbox_post'] = 'Post messages in Shoutbox'; $txt['permissiongroup_shoutbox_panel'] = 'Shoutbox Moderation Panel'; $txt['permissiongroup_simple_shoutbox_panel'] = 'Shoutbox Moderation Panel'; $txt['permissionname_shoutbox_edit'] = 'Edit messages in Shoutbox'; $txt['permissionname_shoutbox_delete'] = 'Delete messages in Shoutbox'; $txt['permissionname_shoutbox_prune'] = 'Empty Shoutbox'; $txt['permissionname_shoutbox_ban'] = 'Ban users in Shoutbox'; // <-- SMFPacks Shoutbox $txt['socialization_onoff'] = 'Enable socialization button (Facebook, Twitter, and Google+)'; $txt['facebook_like'] = 'Show Facebook Like icon in the first post'; $txt['twitter_tweet'] = 'Show Twitter Tweet icon in the first post'; $txt['googleplus_plusone'] = 'Show Google +1 icon in the first post'; $txt['sd_add'] = 'Share me:'; $txt['sd_social_bookmarks'] = 'Share me'; Get layer position?

MyPaint > Development and Suggestions

Get layer position?

(1/1)

shocksofmighty:
Is there a relatively simple way to get the position of a layer relative to the document origin? I use mypaint for lectures and I hacked up an older version to allow me to import images as layers and drop the layer at the current cursor position (based on hv-fransescos branch). It works fine on the first move, but subsequent moves are no longer relative to the document origin, but on the layer bounding box. It should be easy to fix if I know the position of the layer.

maxy:
I didn't really understand what you want to do, but you can call layer.get_bbox() to get the bounding box of a layer, the upper left corner of that is the origin of the layer relative to (0, 0). However after a save/load cycle the place of origin usually moves around, IIRC.

Navigation

[0] Message Index

Go to full version