Source language: Translate to:

Store snap position in a variable

Questions about using NeoBook's scripting language

Moderator: Neosoft Support

Store snap position in a variable

Postby UltraVox » Sun Oct 13, 2013 1:28 am

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
Last edited by UltraVox on Mon Oct 14, 2013 11:37 pm, edited 2 times in total.
UltraVox
 
Posts: 419
Joined: Sat Jul 28, 2007 11:14 am
Location: France

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

Postby dec » Sun Oct 13, 2013 3:27 am

Hello UltraVox,

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

Image
.
Enhance your NeoBook applications!
.
57 plugins, 1113 actions and 230 samples
.
NeoPlugins website: www.neoplugins.com
.
User avatar
dec
 
Posts: 1663
Joined: Wed Nov 16, 2005 12:48 am
Location: Spain

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

Postby UltraVox » Sun Oct 13, 2013 4:03 am

Hello David,

In the Text properties :
Image

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

Not easy!
Argh ...

UltraVox
UltraVox
 
Posts: 419
Joined: Sat Jul 28, 2007 11:14 am
Location: France

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

Postby dec » Sun Oct 13, 2013 4:05 am

Hello,

My fault. Now is clear to me what you wanted. Sorry if I cannot say anymore right now... :?
.
Enhance your NeoBook applications!
.
57 plugins, 1113 actions and 230 samples
.
NeoPlugins website: www.neoplugins.com
.
User avatar
dec
 
Posts: 1663
Joined: Wed Nov 16, 2005 12:48 am
Location: Spain

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

Postby Neosoft Support » Mon Oct 14, 2013 10:46 am

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.
NeoSoft Support
Neosoft Support
NeoSoft Team
 
Posts: 5593
Joined: Thu Mar 31, 2005 10:48 pm
Location: Oregon, USA

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

Postby UltraVox » Mon Oct 14, 2013 11:37 am

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 !
UltraVox
 
Posts: 419
Joined: Sat Jul 28, 2007 11:14 am
Location: France

Re: Store snap position in a variable

Postby Neosoft Support » Tue Oct 15, 2013 11:03 am

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"
NeoSoft Support
Neosoft Support
NeoSoft Team
 
Posts: 5593
Joined: Thu Mar 31, 2005 10:48 pm
Location: Oregon, USA


Return to NeoBook Action Commands

Who is online

Users browsing this forum: Bing [Bot] and 2 guests

cron