CS3, VBS, Reset zero point
Greetings,
How do I reset the zero point to be 0,0 - ie relative to the top left corner of the document, in VBScript? In InDesign you double-click the top left box of the ruler.
I found the below but have given up guessing how to apply it ...
Property ZeroPoint As Variant
Member of InDesign.Document
The ruler origin, specified as page coordinates in the format [x, y]. as Array of 2 Units (Doubles or Strings)
Thanks,
Nigel
try:
myDoc.ZeroPoint = Array(0,0)
(0,0) is always in top-left corner of Spread
robin
www.adobescripts.com
Similar Messages
-
How can I reset the xy zero point to a different spot in my PDF? Possibly via a plug-in?
I would like to reset my zero point to aid in measuring and aligning elements in PDFs. Indesign, Illustrator and Photoshop will let you do this but not Acrobat Pro. Any ideas? I also use Pitstop Pro but can't seem to find anything in there that can help other than the measure tool.
You can't. The coordinate system defining the position of page elements is a fundamental property of the ISO PDF standard.
-
Reset BufferedReader pointer back to zero
How do I reset the position of a BufferedReader object back to 0? For example, I want to do something with the BufferedReader object, namley use the read() method, and then once I do that, I would like to reset the pointer back to index 0 (or the beginning of my file).
I am using BufferedReader to open a file.
I tried using the reset() method, but that does not seem to work. I also used the skip() method, hoping to "skip" backwards, however that is not possible because you can only skip forward.
Thanks in advance!Thanks for your help.
Yes, originally I got an IOException, that I simply caught.
Also, thanks for pointing out that the reset() method does not do what I want, meaning reset it back to the beggining of the file. So I have gotten absolutely nowhere.
Do you know how I could reset my marker back to the beginning of the file? What I actually want is to go back 9 characters in the file after I have made the call read().
Once again, thanks. -
Hi,
InDesign has 3 zero points: two in the upper left corner for x and y and second x in upper right corner. When I rotated graphic that is bigger than the artbord, it ocasinally gets confused which x zero to use and rotates the graphic of the artbord. Is there a way to tell it which zero point to use.
Thank you very much for your help.
YuliaSwitch from page oriented rulers to spread oriented:
app.activeDocument.viewPreferences.rulerOrigin = RulerOrigin.SPREAD_ORIGIN;
Alternatively, you could try the third option (Spine) -- zero at the center and counting down to the left and up to the right. That's easy to handle mirrored layouts with. -
Flash 8 - zero point for x, y changes in slide screens
When I begin building a slide presentation in Flash 8, the x
and y zero point for the stage is at the top left where I would
expect it to be. So I place a few things on the stage, add a slide
or two and suddenly the zero point is in the center of the stage. I
am not sure when exactly it happens or why. How do I stop this from
happening? How do I correct or set the point back to the top
left?Actually our users are complaining that the Flash 10 grayscale antialiasing on device fonts does not look as good
as the Flash 8 style antialiasing.Virtually everyone uses LCD monitors now, and it seems like the Flash 8 color
dithering produce better results on these displays.
It is demonstrated that the Flash 10 player will render device fonts with
different algorithms when it is using AVM1 or AVM2, so what I would like to know is if there is any way to have programmatic control over this
choice in my Flash 10 application, so I can get the Flash 8 style antialiasing, or control other parameters on a device font, like sharpness, etc. -
Hi,
I trimmed an audio regin in the audio track edior with "Snap Edits to Zero Crossings" on.
But I zoom in、the waveform was not ended at Zero point.
Why?
In the audio file editork, "Snap Edits to Zero Crossings" option works fine.correction needs to be made to step #14, I typed:
14) Point to the start or end one of the clips, when you see the icon showing arrows going either way, right click and drag your clips to roughly match up with the timeline selection, then zoom in further and adjust the clip start and end points to match up exactly with the timeline selection start and endpoints.
Here is the correction, THE CORRECTED PARTS ARE CAPITALIZED:
14) Point to the start or end OF one of the clips, when you see the icon showing arrows going either way, LEFT-CLICK and drag your clips to roughly match up with the timeline selection, then zoom in further and adjust the clip start and end points to match up exactly with the timeline selection's start and end points.
Another Correction:
Originally read:
Addendum: IF you have 2 files selected and click "Edit" to go to Edit view, it will give you the file of the clip you selected first, not 2nd. You must then go back to MT view, de-select the clip you selected first, then de-select the clip you want to edit, then RE-select the clip you want to edit.
Here is the the correction, CORRECTED PARTS ARE CAPITALIZED:
Addendum: IF you have 2 files selected and click "Edit" to go to Edit view, it will give you the file of the clip you selected first, not 2nd. IF YOU WANT TO EDIT THE 2ND FILE YOU SELECTED IN MULTI-TRACK VIEW, You must go back to Multi-track view, de-select the clip you selected first, then de-select the clip you want to edit, then RE-select the clip you want to edit, THEN CLICK "EDIT" TO GO TO EDIT VIEW. -
Js, zero point in facing pages indd
Hi,
When I create my facing pages indd file, it only gives me one zero point for 2-page block. How can I change it to have two zero points - one for each page.
I already have this, but it's not helping:
myDoc.zeroPoint = [0,0];
Thank you.I found it:
myDoc.viewPreferences.rulerOrigin = RulerOrigin.PAGE_ORIGIN; -
Can you flip ruler values around the zero point in CS5?
I prefer the zero point to be in the bottom left corner, but when I set the zero point at that location in CS5 all the Y values on the page are negitive. Is there a way to flip the vertical ruler values so that the positive values fall on the document I am working on? In CS 3 I don't have this problem, the values on the page remain positve when the point is at the top or bottom left.
Thanks!Movement on a 2D plane (I'm assuming your robot is rolling around on the ground) takes three parameters to specify location and orientation, X, Y, and Heading. Most mice are designed to give you X and Y, assuming that you maintain a constant heading. I just tried turning my Logitech mouse, and noticed X and Y moved a lot -- that's because the sensor is eccentric in the mouse, so the rotation got "mapped" into X and Y, but not heading.
You can solve this by using two mice and "doing the math" (may take some experimentation to get the proper constants) to map rotation into mice outputs. Note that choosing the origin of your robot coordinate system (relative to the "origins" of the mice) is also important.
Finally, the plot you want to make is probably not a "moving cursor" (since I don't know an easy way to make a cursor rotate) but a simple representation of your robot moving around on the screen. Christian Altenbach recently answered a "math problem" Jeff Bohrer posted where he created such a display (maybe a week ago) -- give him credit for the design if you "borrow" it.
Bob Schor -
How to reset buffer pointer for analog output generation?
I am doing a finite analog output generation on a USB-6216
Sequence of events:
DAQmx Create Task
DAQmx Timing (finite samples, 1000Hz)
Use DAQmx timing property SampQuantamples per channel to set buffer size
Write buffer with DAQmx Write
Repeat
DAQmx Start Task
DAQmx Wait until done
DAQmx Stop Task
Until finished
DAQmx Clear Task
I get a full waveform output on the first iteration of the loop. On subsequent iterations I get only a small section of the waveform, but no error. It seems that it is regenerating the waveform, because when I switch off regeneration I get an error at Start Task, but before it can regenerate all the data Wait Until Done.vi decides that the generation is done and exits, stopping the generation.
I have done this with a PCI device and it works fine; every call to Start Task generates the whole waveform again.
OK, so it looks like after every waveform generation completes I need to reset the pointer to the start of the buffer, so that the Wait Until Done vi does not think the generation is done. Or - maybe there is a way to reset the "Generation Done" state?
I'm sure there's an easy way to do this....?Hi CDancer,
Many thanks for contacting National Instruments. If I can start by giving some general advice, it would be well worth posting your actual VI. This helps others on this forum in helping you with your application.
From the sounds of things, you want to do continuous analog output generation. I have had a look at the examples that come with LabVIEW and I think you should look at the one below.
I would have a look at some of the DAQmx examples that come installed with LabVIEW. The following example would be particularly relevant I feel
Cont Gen Voltage Wfm-Int Clk-non Regeneration.vi
Please let me know how you get on.
Many thanks,
Andrew McLennan
Applications Engineer
National Instruments -
Hello,
This is probably a mundane question but I am wondering what is the most efficient method to reset a Point.
1: Allocate a new Point
myPoint = new Point();
2: Set the point properties manually
myPoint.x = 0;
myPoint.y = 0;
3: Normalize its length
myPoint.normalize(0)
Any thoughts??
PierreHi,
That is also my pick, but it is a pretty annoying thing to code for each reset. This is where a pre compiler and macro definition would be so usefull. I guess this is old school coding by today standard...who cares about performances.
Pierre -
How to set zero point at upper left corner of page
In my document, I have tried to use the "Units & Increments" preference settings to make the upper left corner of my pages be the zero point for the x and y coordinates. But, if I draw a box on the page then type in the coordinates as zero, the center of the box will align with the upper left corner of the page. I need for the upper left corner of the box to align with the upper left corner of the page. Does anyone know how to fix this problem?
You can also find information on this in the InDesign help.
Launch the help file. Search for:
Setting the point of origin for transformations
or
To transform an object
hth
-mt -
Title editing when Sequence Zero Point changed
I have this problem with CS5 and also previous versions of Premiere Pro...
When you double-click title on the timeline to edit it, and Sequence Zero Point = 0, it all works fine.
But when you change the time code then you have wrong background video displayed behind the current title.
Can this be fixed please...
Look at screenshot below:
- I've changed Sequence Zero Point to 00:01:00:00
- Added Blue and Red color mattes to video1
- Added title to video2 above Blue clip, then closed title editor
- Now when I click on title to edit it I have Red clip displayed behind the textI hadn't noticed this before (due to my workflow with titles, multicam and timecode settings, I probably never would have either). But I can reproduce it on my system (PrPro CS5).
Interesting thing is, with my sequence, the start time is 18:00:00:00 so it just shows black video behind the title. However, if I scrub the timecode INSIDE the title designer window, then it updates to the proper frame and remains that way until I close the titler window. So that at least provides a temporary workaround, but it IS a bug (since the feature is not working as it was intended to work).
It would be feature request if it was for some operation or procedure that wasn't already in the intended code for the application. So again, in this case there is a workaround, but it is technically a bug since the "Show Background Video" and "Background Video Timecode" should match up. It's just that there's a piece of logic missing when the sequence zero point is NOT "0" -
Setting the zero point to an exact integer
When I set the zero point to an intersection of two guide lines, I often find that it is out by exactly 0.088mm. How can I set the zero point to an exact number of mm?
There aren't any frames involved. If the zero point is at the top left corner and I insert horizontal and vertical guides at, say, 10mm in from top and left side, then drag the zero point to the intersection of the two guides, clicking on the two guides reveals that they are now at -0.088 instead of zero. I accept that 0.088mm is not a huge error, but it still niggles me.
-
How to reset CS3 after W7 restore point Actv 24:24
Cannot activate my CS3 after having to use a recent Restore point, now get the Activate 24: 24 code
My ver. is a PS7-upgrade to CS3. DO I have to do a uninstall - reinstall ?You can insert your CS3 install DVD, and it should give you an option to repair the install.
-
How do I clear (reset) keyframe points in Final Cut Pro?
I know there is a quick and single click to clear (reset to none) all keyframe points in the viewer window (motion tab).
I just can't figure it out. I have to right click each and every keyframe point and click delete.
But there is a way to wipe out all keyframe point with one click.
Where and how?
Thank You
DanThank you, guys: but I finally found it! Tried for a half hour and read all the help manual stuff first.
'Help' never mentioned it.
In motion click the 'basic motion' button to clear (delete) all keyframe points.
Dan
Maybe you are looking for
-
need suggestions
-
How to get the HTTP response body if the body is a malformed XML document
Hi, I am using HTTP service with resultFormat = "e4x" set. What i get in response is a malformed XML document in some cases. Usually HTTPService throws a FaultEvent with the fault detail set to faultCode:Client.CouldNotDecode faultString:'Error #1091
-
You Are Not Connected to the Internet - it happens too often
Month old MBP. Very often I'm surfing the net wirelessly and the next thing I get is the annoying message saying: You Are Not Connected to the Internet. This happens at my office (closed network), my house (closed network, and at a friend's house (op
-
Why wont my keyboard light go to all the way brightness?
I turned the keyboard brightness all the way up and I am in a very dark room but the keyboard is hardly lit.
-
How do you identify what devices an Apple charger charges?
I have a box full of computer wires and cables and chargers and old cell phones and i'm doing some spring cleaning and was wanting to see if you guys could help me identify these chargers because I've no idea what they go to: