Page 1 of 1

Store snap position in a variable

PostPosted: Sun Oct 13, 2013 1:28 am
by UltraVox
Hello everyone,

Is it possible to store in a variable the Snap position (in french : Position d'ancrage) for a Text NeoBook Object (text frame) ? I would like to modify its height in certain circumstances, but the snap position prevents modification. Unfortunately, the "GetObjectInfo" command does not provide this info...

A tip/plugin would be welcome.

Thanks. :)

UltraVox

Re: Store inking (Anchor ?) position in a variable

PostPosted: Sun Oct 13, 2013 3:27 am
by dec
Hello UltraVox,

Sorry if I cannot understand very well: Do you asking for the caret/cursor position?

Image

Re: Store inking (Anchor ?) position in a variable

PostPosted: Sun Oct 13, 2013 4:03 am
by UltraVox
Hello David,

In the Text properties :
Image

Looking for a way to change this value by a variable or plugin.

Not easy!
Argh ...

UltraVox

Re: Store inking (Anchor ?) position in a variable

PostPosted: Sun Oct 13, 2013 4:05 am
by dec
Hello,

My fault. Now is clear to me what you wanted. Sorry if I cannot say anymore right now... :?

Re: Store inking (Anchor ?) position in a variable

PostPosted: Mon Oct 14, 2013 10:46 am
by Neosoft Support
It's not currently possible to change the snap position/alignment of an object at runtime. Instead what you can do is create different pages with different layouts then switch pages to display the layout you want. Alternatively, you could create multiple objects on the same page with different snap positions, then hide or show the appropriate ones depending on the layout you want.

Re: Store inking (Anchor ?) position in a variable

PostPosted: Mon Oct 14, 2013 11:37 am
by UltraVox
Neosoft Support wrote:Alternatively, you could create multiple objects on the same page with different snap positions, then hide or show the appropriate ones depending on the layout you want.


Not Dave. If I mask an object, another object takes its place and because of that, the previous object can not recover its original place. Take the test with two objects that use the "snap position/alignment" function. The one above the other. If the bottom object is hidden, the top object takes its place (auto-snap), but prevent the bottom object below to recover its original position.

Sorry for my lack of clarity...
Not easy to explain !

Re: Store snap position in a variable

PostPosted: Tue Oct 15, 2013 11:03 am
by Neosoft Support
If I mask an object, another object takes its place and because of that, the previous object can not recover its original place. Take the test with two objects that use the "snap position/alignment" function. The one above the other. If the bottom object is hidden, the top object takes its place (auto-snap), but prevent the bottom object below to recover its original position.


Try using MoveObject to compensate. For example, if Container1 should be aligned to the very top:

MoveObject "Container1" "0" "-1"