Origin of the mobile ruler, setting point of reference etc.

Hello

I'm quite new to script InDesign. I do a script that moves and makes duplicate various page elements. My problem comes when the user has moved the origin of the rule it messes up my script.

How, within a script, can you put the ruler origin to the top left of the page/spread?

In addition, when you use a method pageItem.move (to) or pageItem.duplicate (to) , how do you know if you are using a left upper anchor point reference or a reference point of the centre centre etc.?

Thank you!

Nicolas

1. RulerOrigin sets whether the rule is relative to the page or spread (or vertebral column, which I say - highly recommend for normal use...). This enumeration is used (see below) to "ViewPreference.rulerOrigin" and "ViewPreference" is in turn used as "Document.viewPreferences". This gives you the line

app.activeDocument.viewPreferences.rulerOrigin = RulerOrigin.PAGE_ORIGIN;

This defines the relative position. The absolute zero can be defined via a document property: Document.zeroPoint ("the origin of the rule, specified as contact page in the format [x, y]"):

app.activeDocument.zeroPoint = [ 0,0 ];

2. the methods that are in need of a proxy site all accept an AnchorPoint, which it can be "Left", "Top", "Center right" and so on as in the proxy form.

But if you check the command PageItem, move , you can see there is nothing on the "anchor". It seems that this command uses only the anchor on the left for the "to" (for movement of which corner you use, it does not matter). It goes the same for PageItem.duplicate.

If you want to experiment and play around a bit, you can read the 'current' setting as 'LayoutWindow.transformReferencePoint ': Control Panel

alert ("Current setting is "+app.layoutWindows[0].transformReferencePoint);

that shows one long on AnchorPointnumbers, or a newer version of InDesign, if I'm not wrong, the full name.

Tags: InDesign

Similar Questions

  • Profile of PID Set point

    Hello guys

    im working on the project to control the position of the hydraulic cylinder using labview connected with the NI USB 6251 housing. IM using the sensor LVDT (1V = 20 milimeters) as a measuring device.

    I have a problem when using profile.vi PID setpoint. I need to define the profile of set point (in milimeters) and then divide by 20 (to be converted to voltage) before entering the profile.vi of PID setpoint. I don't know how to divide that cluster of data types (composed of 2 elements (time and setpoint)) with a constant '20', I want only to divide the element of set point, not to divide the time element. Please see my attached VI... Thank you very much for your help guys...

    No I got it myself using bundle features... Thank you guys

  • Cannot install Internet Explorer 8, error: the ENCODEPOINTER procedure entry point could not be located in the DYNAMIC LINK LIBARARY KERNEL32.dll.

    Original title: the ENCODEPOINTER procedure entry point could not be located in the DYNAMIC LINK LIBARARY KERNEL32.dll.

    PACKAGECUSTOMIZER. EXE-

    I just built this computer and Windows XP support.  In order to use IR, I needed to update in softtware.  The following error messages we received during the download process.  The procedure entry point ENCODEPOINTER could not be located in the DYNAMIC LINK LIBARARY KERNEL32.dll.  It is one of the error messages that I received everything trying to downloand IE8.  The other was: SHREGGETVALUE W procedure entry point could not be located in the DYNAMIC LINK LIBARARY SHLWAPI.dll.  Because of these two errors, the software was never fully charged.

    What are these codes and how can I fix them?

    Hi CharlesPortillo,

    Follow the steps in the article.

    How to install Internet Explorer 8

    How to solve Internet Explorer 8 installation problems

    For reference:

    How to solve problems when you install or uninstall programs on a Windows computer

  • The screen brightness setting does not appear in the mobility Center

    original title: how is the screen brightness control does not appear in the center of mobility?

    In the past the mobility of my laptop Vistas Center contained a slider to set the brightness of the screen.  My computer screen is dark and I want to adapt it to a brighter screen.  How can I get my rear screen brightness adjustment?

    Hi bigwaterboy,

    1. you remember to make changes to the computer, after which the issue started?

    I suggest updating the graphics card driver on the computer and check if it helps:

    Updated a hardware driver that is not working properly

    Reference link:

    Using Windows Mobility Center

    I hope this helps.

  • After the migration, I set no longer filtering rules, as TB indicates "No available record" - the incoming mails are sorted according to the rules in force in the folder

    I had to install a new computer. I moved the profile data as described here. A new folder (just the icon) appeared out of nowhere (it cannot be moved, renamed, deleted, etc.).

    When I highlight a message and choose Message-> create message filters, I can't create a rule to move messages to a folder, as the area where I can choose the target folder is grayed and he says: 'no record available", that is not true, I have a lot of files and the existing rules that route incoming messages in the correct files (that have been set before the move).

    I can't rule out that this is not related to the move, but to a new version of ThunderBird, because I do not create rules that often.

    I use ThunderBird to different e-mail accounts with different providers.

    Hello

    I found the solution.

    For some unknown reason, one of my accounts was defective. I noticed that I have does not receive emails from this account and found that he had turned in this ghost file.

    After the deletion of this account (and rather to create a new account), I can again create rules as before.

    I hope that someone from the developers takes a look on this, it's pretty embarrassing.

  • Put the data of the set point in a waveform graph

    Hello

    In a graph of measure, which is the result of a waveform, I would add data of the set point as well. How can I add this data to set for the chart value?

    In a control loop system, the output is controlled by a labview program. I would like to see the point of this system as well as in the graph, these thresholds are changed at random times, so I don't know how to create a waveform of these data. Should I create a waveform of the setpoint, or y at - it another option to show the set value in the chart?

    See you soon,.

    Rolf

    That can make it much more difficult.

    At one point an array of 1000 points need to be assembled (obviously). How do depends greatly on your structure. Synchronize the time of the two signals can be very difficult. It would be easy if the set value only changed once a cycle of 1000 point.

    You may want to read the SP as an analog input, so you get 2 samples of the material here. In this way the two will always be synchronized. But I'm done alleady assumption, like this, the signal is an analog input (and the target value of one analogue output). What equipment do you use?

    I think always need you a loop to get data and a loop to set the SP. The two loops will be more parallel execution GLSL and synchroniseent. The trick is to synchronize, or for the deterministic timestamps in two loops. If you can make that happen, you 80% there. You could do loops timed loops (using the same clock). Then you get the timestamps in two loops. The MS loop has the queue changes, pushing the value and time. Then the loop of data can use values and hours to create examples of sp 1000.

  • Having bad to write the set Point to clip MFC

    I've already written a Subvi for reading and parsing the output of a scientific MFC of clamp (16 series), which works very well, however, I have some difficulty in sending a set-point in the MFC. I have attached a Subvi test as I write. All of the com parameters are matched to the CMF as well (19200 baud, 8 bits of data, no parity, 1 stop bit, no flow control). After setting the appropriate resources channel, I enter the following in the field of the buffer:

    \r\r\r\r\r\r\r32000\r

    which I believe must send the deposit to the MFC, but I am seeing no response. When I entered the same string in the VISA test panel in MAX, it works however. Anyone has an idea on what I'm doing wrong? Please also let me know if there is any additional information I could provide that would be useful. Thank you.

    You send the characters '-' and 'r', not a carriage return.

    Place the command string buffer writing '-' display of Codes in order to send '-' Codes correctly. It's a simple right click.

  • Whenever I have to copy/paste the results include many points of mark boring... are not part of the original text.

    Whenever I have to copy/paste the results include many points of mark boring... are not part of the original text.  I use wordperfect 12 with Windows XP.

    How can I solve this dilemma?

    Hello, Roger Scott,.

    -Does only with WordPerfect or with other applications as well?

    If this only happens with WordPerfect so I suggest you to check with WordPerfect support for more information.

    http://www.Corel.com/Corel/pages/index.jsp?PgId=800034

  • The pc seems to have gone to a previous set point during the boot, but now she can not install software and doesn't seem to have Norton AV more

    My daughter's office got fried during the last storm, even though she had a surge protector.  Obviously the power company line was bad.  The pc seems to have gone to a previous set point during the boot, but now she can not install software and doesn't seem to have Norton AV more.  When she tries to run a system restore it gets "extended attributes are incompatible."..: thank you for your help.  Debbie

    Hello

    I would suggest trying the following methods and check if it helps.

    Method 1:

    Run the scan tool (SFC) System File Checker and check if it helps.

    This problem may occur if a system file is missing or damaged.

    You can refer to the method-the System File Checker tool in the following article:

    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7: http://support.Microsoft.com/kb/929833

    Method 2:

    Try to clean boot, and then check to see if this helps you.

    How to solve the problem by running the clean boot in Windows 7:
    http://support.Microsoft.com/kb/929135

    Note: Once you have completed troubleshooting, perform the steps in the step 7: to reset the computer as usual.

    Method 3:

    Try the steps in the following Microsoft article and check if it helps.

    Problems installing and uninstalling programs on Windows computers:

    http://support.Microsoft.com/kb/2438651

    Hope the helps of information. Please post back and we do know.

  • Doc to set up the existing rules for DB...

    Someone has a doc or examples of configuration of the severity and action tabs in the existing rules of SQL and Oracle.

    Hi Jim,.

    The available documentation is in using the Global Administration Options and set alarms. Remember, this is not specific to the rules of databases, but rather generic configuration of rules and alarms. If you have a specific question, please report it here so that we can better help you.

    Thank you

    Pedro

  • How can I set 100% width my slideshow on the mobile version

    Hello!

    It's been a while I needed to ask this question here, but a huge problem of authentication of the ADOBE forum took months to be resolved by them.

    In any case, I have a site made with muse (office). I tried to decline in Tablet and picture version as he said it be easy to notice muse video team.

    But the sideshow photo do not behave in the mobile version as expected.

    http://Demis.nu/phone/modeles.html

    the worst is the orientation to landscape. The pictures are just great for the screen.

    I tried 100% width and cancelled, I tried to resize the size of the photo to fit on both sides of the page... anyway, everything I tried was not satisfactory.

    I know that the solution is to make sensitive, but I couldn't be able to find a way to do it in Muse.

    I tried the demo of muse in the first hours (2011) and years after that it is obvious that the adobe team muse understood design rules sensitive everything and I'm sure that they implemented, but can't find it.

    Can someone give me help please because the version of the phone is online and is horrible.

    Thank you very much.

    Reactive Adobe Muse CC 2015 is now online. Please install the update of CC > Apps.

    What's new: news summary

    Release notes: https://helpx.adobe.com/muse/release-note/adobe-muse-release-notes.html

    Delicate design:

    Adobe help Muse | Create responsive Web sites

    Adobe help Muse | Responsive web design in Adobe Muse

    Adobe help Muse | Migrate existing Adobe Muse Web sites to answer

    Tutorials

    To get started with Adobe Muse (replaces how to make a website with Adobe Muse (coffee of Katie)):

    - https://helpx.adobe.com/muse/how-to/create-responsive-website.html

    Create a sensitive webpage with Adobe Muse:

    - https://helpx.adobe.com/muse/how-to/responsive-web-design.html (more detailed features RWD of Muse demo)

    Thank you

    Sanjit

  • any user defined function in the rule set by the user

    Hello

    I wonder if I can use a function defined by the user in a rule set by the user in oracle sem... I've seen examples of user defined function the used in sparql query filter clause in this guide to dev... However, I don't know if I can define a function in oracle database SEM. and use it in the body rule or the head. For example, I want to define a function of the length that allow to calculate the difference between two dates.  So, I want to set a rule as follows: event1: d1 and event1 has_start_date: has_end_date d2 and duration (24, d1, d2) then event1:date_satisfiable 'yes '. Oracle supports this type of rule? Thank you very much.

    Hong

    Salvation Hong,

    User-defined in 12 c inference can be a good choice for your condition. Please see the following document.

    Defined by the user and querying inference

    Thank you

    Zhe Wu

  • using the custom value sets rules of SOUL of special type of information

    Hi, I have custom value sets that I use with my types of special information. I have allowed these types of special information self-service and attached rules for approval their.
    Here my problem, some of the sets values are sql based and are designed to obtain information on the applicant. then I use a lot fnd_profile.value ('user_id').
    For example,.
    Select email_address from fnd_user where user_id = fnd_profile.value('user_id')

    But when the sit is sent for approval, any field, the use of these custom value sets are missing. the only fields that are displayed are those not not with value sets with user_id profile as part of the query.
    My question is, is there a better way to retrieve information about the employees and thus be able to avoid this error?
    Thank you very much
    Iraqi

    Hi innocent,

    for the specific e-mail address case, maybe you can remove the valueset validation, set a default value based on the query and convert the field read-only, although I recall some faulty difficulties read only FDF.

    or maybe you could try changing the valueset to something like:

    Select email_address from fnd_user where user_id = fnd_profile.value('user_id')
    Union
    Select varchar2_value in the hr_api_transaction_values where >

    see you soon
    Giuseppe

  • How to set the mobile site to an already existing Web site?

    It is the first time that I'm building a mobile site of the query.  There will be a mobile version of an already existing Web site.  I have no problem with the coding, but I was wondering how do I set the site.  I have to create a new or keep it in the same local root folder? And once done, it will automatically resume on mobile devices or there at - it a code I need to add to my Web site to allow the mobile version override her? Thank you.

    If you want to use the URL m.domainname.com, then it is best to place the index file in this folder, which is the root/m in order to run by default. Other files/assets are related, that's why it doesn't matter where they are as long as the link is correct.

    By the way, m.domainname.com is the same as domainname.com/m

  • Can we have another condition to the rule set (business rules)

    can we have condition ifElse in the set of rules?


    Thank you

    There is no IfElse in the rule set.

    If you require an If else, write 2 different rules:
    (1) with the positive test condition.
    (2) with the negative test condition.

    Oracle Business Rules follow Pattern Matching, Rete algorithm, not mistake for a procedural language built IfElse.

    --
    Mark recognition appropriate as useful or appropriate response, if your problem is resolved.

Maybe you are looking for