Photoshop :: Scripting A Position
Mar 5, 2004
Using action script I would like to crate a text layer and have it be bottom right justified on the canvas. The problem is that when you create a text layer you must click on the canvas. Since I have different size canvases I am doing this on and I want to do it automatically there is an obstacle.
If I could just create the layer and then some how tell it to position itself that would work too. When you script all moves are relative from the starting position.
View 2 Replies
ADVERTISEMENT
Oct 4, 2012
is there a way to get position of any selected object? It seems like normally you have to dive into specific item like textFrames to get position, but was curious if there was a generic way of doing this for selected objects.
View 5 Replies
View Related
Feb 21, 2012
Why does this not work? The textFrameItem.anchor behaves as if it is a read only value but it isn't supposed to be. What am I doing wrong?
Â
function pointText(onLayer,str){
   var pointText = onLayer.textFrames.add();
   pointText.contents = str;[CODE].....
View 1 Replies
View Related
Oct 24, 2013
How can I get keyboard cursor(caret) position in javascript?
Â
I made a multilined edittext in ScriptUI.
Â
But It's not working about Enter key.Â
Â
All I want is when I push 'enter' key, begin a new line.
Â
If I know how to get keyboard cursor position, I can insert ' ' character in middle of sentances.
Â
////////////////////////////////////////////////////////////////////// ///////////////
 var win =new Window ("dialog", '');
win.orientation = "column";
 var grpContents = win.add("group")
var codeInput = grpContents.add ("edittext", [0, 0, 150, 550], "", {multiline:true});
codeInput.alignment = ['fill', 'top']
[code]....
Â
I use windowsXP and Illustrator CS3.
View 4 Replies
View Related
Sep 20, 2012
how can I copy and paste position and size of two objects?
Â
Let's say I have a circle 2 x 2 cm and it's position is y 5cm x 5cm, I have a square of size 3 x 7 cm and it's position is y 0cm x 0cm.
Â
How do I copy and paste in a single command/step the circles position and size to square, so I can get square of 2 x 2 cm and it's position 5cm x 5cm?
Â
Something like copy + paste in place with a different logics. I hope You understand what I want.
Â
I'm doing it now manually, I'm copying size and position of one object to another [ctrl + c > ctrl + v] but it takes quiet a while,
View 2 Replies
View Related
Jun 9, 2012
I'm trying to get the position of point text from left anchor if left aligned, middle if center aligned and right if right aligned. is this even possible?
Â
here are the keys of object I am trying to get at:
Â
keys:
Â
story : [Story]
contents : export me
textRange : [TextRange]
textSelection : [TextRange]
rowCount : 1
columnCount : 1
rowGutter : 0
columnGutter : 0
flowLinksHorizontally : true
spacing : 0
opticalAlignment : false
kind : TextType.POINTTEXT
contentVariable : undefined
orientation : TextOrientation.HORIZONTAL
Â
this is what I am using to get at it:
app.activeDocument.textFrames[2].anchor[0]
Â
am i confusing anchor point with baseline position?
View 3 Replies
View Related
Jan 17, 2014
I was hoping to create a JS script to move objects away from common center based upon their current position. I was thinking to use a single selected path item as the center based on its position x/y and width/height. Using this reference point the script would then move away all other path items from this center point based on a desired amount and with uniform increments given their current location from this center. I was thinking cos and sin would be my friend in this case, however they seem to have become my foe instead. ;-)
Â
Does this sound doable? What am I missing, doing wrong, misinterpreting? Below is a non-working attempt, I can't seem to sort things out, perhaps I was close and missed it or maybe I am super way off and its more complex than I thought. However at this point I am confused across my various failed attempts this only being one of them.Â
Â
// Example failed code, nonworking concept
var docID = app.activeDocument;
var s0 = docID.selection[0];
pID = docID.pathItems;
var xn, yn;
var stepNum = 20;
[Code]....
View 13 Replies
View Related
Jul 12, 2013
Is it possible to setup a block so that an attribute position remaines fixed (absolute to drawing) when moving the block?
I've been playing around with creating a Coordinate Block by following these instructions: [URL] ........
What I would like is to be able to set the position of the Coordinate Label and Coordinate Object independently, so that if I move one in the drawing, it doesn't move the other. I've looked into Dynamic Blocks, and the "Lock Position" parameter. I can move the attribute independently, but still everytime I move the block, the attribute moves too.
Our company uses a custom Sheet/Coordinate system to follow flyoffs across a drawing, and I'm trying to learn how to automate the process. It's completely manually right now, so any changes to a drawing creates a lot of work renumbering these flyoffs.
View 4 Replies
View Related
Dec 18, 2012
I'm try to automate the importing of the Varaible and datasets into my graphs via Scripting, but the ImportVaraibles() function doesn't seem to work. Here is my Script, mostly copied from the example script provided with Illustrator (CS5). And, this works manually, using the file names in the script, via Load Variable Library
Â
   Set appRef = CreateObject(strIllistratorVersion)
  Â
      'Open the file and import the datasets
       Set docRef = appRef.Open(strTemplate & "200-500.ai")
       'docRef.Datasets.RemoveAll
       docRef.Variables("Yearbook").Delete
Â
Here is the problem, after I delete the previous library, then this next line, right from the example, does nothing
The script then exits with 'No Datasets in this document'
      Â
docRef.ImportVariables (strXMLFolder & "Lumber_200-500.xml")
'appRef.DoJavaScript "alert('Template:" & strTemplate & strRange & ".ai | XML file:" & strXMLFolder & "" & objFile.Name & "^')"
       If (appRef.Documents.Count > 0) Then
           Set docRef = appRef.Documents(1)
 [Code]....
Â
If I remove that delete line, the script runs, but just uses whatever Variables I had last loaded, not the XML file.
Â
It's simply not loading. What do I need to do to get it to load?
View 8 Replies
View Related
May 15, 2013
Is there an easy way to ensure that the position of attributes on a block match the position on another block?
I just used the ATTIN command to upload a bunch of data to the block attributes on a drawing, and now the information is all over the place.
Instead of going through each one manually and repositioning the attributes (a VERY lengthy process), I want to use a "correct" version as a template of sorts to inform the other selected blocks of where to place the attributes and have it reposition the whole thing automatically.
Is this even possible?
View 6 Replies
View Related
May 6, 2012
Can you access graph data through the scripting DOM?
View 3 Replies
View Related
Mar 16, 2013
the Script of creating mirror text and stroke text in Adobe illustrator scripting.
View 4 Replies
View Related
Sep 23, 2012
Don't know why it appear today when I opened PS but I want to removed because its quite annoying when you trying to move image and this appears
View 1 Replies
View Related
Sep 25, 2006
I am trying to make a new skin for a phone software,
sometime the button dont appears at the right place, when I try the program
I was looking at the ini files
FileName=sd.bmp
Left=124
Top=225
Width=36
Height=12
NumGlyphs=3
[Btn_Sd7]
FileName=sd.bmp
Left=124
Top=244
Width=36
Height=12
NumGlyphs=3
[Btn_Sd8]
FileName=sd.bmp
Left=124
Top=263
Width=36
Height=12
NumGlyphs=3
so I think those are the button position, so how do I know in photoshop
those button position?
View 4 Replies
View Related
Oct 15, 2004
I wonder how I can position an object right in the middle of my page for example, or aligned left or whatever.
View 9 Replies
View Related
Jul 12, 2013
I'm in Photoshop CC 3D, and I have a simple scene with one complex object. I can't find any way to move the position of the camera beyond the default positions, like top, front, back. I can do it CS6, but I can't do it in CC. I can rotate the object, but I want to keep the object where it is. I want to move the camera.
View 3 Replies
View Related
Sep 9, 2008
I'm trying to watermark a whole bunch of my photos with an Action, but I need to know how to align the text to the bottom right corner, like by percentage. Using pixel values won't do me any good since every image is a different size. Anybody know a way, or some alternative to get this effect?
View 1 Replies
View Related
Apr 15, 2009
In PS CS4, my cursor position often "jumps around" in a very random way, the instant the mousebutton is pressed. For example, when using the brush tool, it will start drawing on a completely different place than the cursor was positionen when I wanted to start painting... The same thing for the lasso tool, etc... I use Vista home 32-bit, CS 4 with latest patches (as of 2009-04-14) and a standard cordless Microsoft mouse - nothing fancy. Mouse works in all other programs 100% of the time.
View 1 Replies
View Related
Jun 24, 2012
I am trying to animate a simple 3D position change in Photoshop Extended CS6 (OS 10.7.4)Here's what I do:
Â
1. I move my object to its starting position.
2. I move the Current Time Indicator ("playhead")Â to the time I want the position change to start.
3. I click the Time‑Vary stopwatch icon on the Position layer of the timeline, and a keyframe is automatically created, no problem.
4. I move the playhead away from the initial keyframe to the time I want the position change to end.
5. I move my object to its ending position.
I expect to see the second keyframe be automatically created, as advertised, BUT it is not. What's more, if i move the playhead to "scrub" through the animation, I see no movement. What's happened is the position I set for Keyframe 1 has changed to the position I just moved the object to, which I intended to be Keyframe 2.
View 1 Replies
View Related
Oct 29, 2012
I am using the 3D functions of CS6 and I noticed a bunch of options either moved around or removed completely. Well, more likely is that I'm just not able to find them. Anyway, one of the functions I have not yet been able to find is the "Return to Initial Camera Position" button. It used to appear in the control panel but not anymore.
In order to get the object and camera back to their initial position I could just go into the history panel and back up to when I first opened the object but that kind of defeats the purpose.
View 1 Replies
View Related
Apr 6, 2013
I am trying to move the layer to another ducument, to the same position. (photoshop)
Â
But whever I drag it, the layer goes to the center of the new document even while pressing the shift key. (both of the document sized are same) I think it worked before, don't know when but now, it doenst work as I expect.
Â
What should I do?
View 6 Replies
View Related
Oct 1, 2012
Shift-dragging centers it, but I have multiple documents (pngs with transparency) of the same dimensions and layers in a variety of positions that need to be preserved (I'm composting some 3d renders). Is this possible?
View 3 Replies
View Related
Oct 23, 2013
I've got a series of meteorological satellite pictures (updated every 15 minutes), which indicate rainfall by means of a color code (blue means weak rain, red is heavy rain; the scale also includes green and yellow in-between). I wish to know the average daily rainfall on a specific spot in the map, which corresponds roughly to a single pixel in the picture, whose X,Y coordinates I've already determined.
Â
Now, I could manually select this pixel in each of the pictures and see which color it was in that specific moment of the day; however, there are too many pictures (96 every day, to be precise), and I began wondering if there's any way to automate this process - that is, I would need Photoshop to select this specific pixel in each image, and determine which color it is.
View 2 Replies
View Related
Aug 13, 2013
I'm trying to line up two images one on top of the other with opacity set so I can see both.in Liquefy (CS4). One is background, the other is Layer 1. How do I move either one roughly in place over the other so I can start adjusting edges so the two profiles match? Hand doesn't move anything.
View 4 Replies
View Related
Jan 31, 2009
Anyway, my quest is to create an action in CS3 that will position and size text (eg. center) as a watermark in any size image. Currently I am creating a copyright symbol, then a text layer and then another text layer and either grouping them in the action or merging them down as created to be in one layer. This works fine as long as I run the action on another file of the same size but when it comes across a different size file the components are all over the place and differently sized.
I gotta admit I don't know a lot about text though. Just thought someone may be able to help me with this one so thanks to all who contribute.
View 1 Replies
View Related
Jan 20, 2009
Have 2 files open with same dimensions. I have a little number on the first file I would like to copy & paste to the second. I want it in the same exact position on the second file as it appears on the first.
I thought if you dragged the layer from the first file onto the second while holding shift key would do it, but it only places the number on the center of the page.
View 2 Replies
View Related
May 23, 2006
I'm batching my signature onto a bunch of photos at the bottom righthand corner. I put my preferences to percentage rather than pixels so I could try things for most sized-photos. My dilemma now goes like this:
I record, open my signature, copy & paste to the other image (works fine). The signature shows up in the middle of the other image and rather than moving it manually where it'll be different for vertical and horizontal photos, is it possible to align right and bottom or get specific with entering numbers such as 90% horizontal and 90% vertical placement?
Basically, when you copy & paste to a different open file, is there a way to specify exactly where it should go when you paste it, or do you have to manually move it?
View 3 Replies
View Related
Jun 2, 2008
I want to write a plug-in that records all the mouse clicking position coordinates while using a polygon lasso tool. How can I get those? I have been reading through the API, but I see none of the functions that does so. Is there a way to record the x and y coordinates in an image. (Assumption: Only one layer).
View 1 Replies
View Related
Nov 10, 2012
Before Photoshop Elements 10, when setting up to print, I was able to uncheck "center" and then I could drag the image anywhere I wanted on the printing surface. Now, there is a blue box that doesn't move and the image is cut off by the bounderies if you drag it away from center. I want to be able to drag the image anywhere I want on the paper and then print, like I used to be able to. How do I do that?
View 2 Replies
View Related
Dec 11, 2012
I'm creating an animated gif from a video clip (cinemagraph). In order to acheive the effect I need, I need to move each layer with the move tool to get an object to stay in the same position. I have gone through layer by layer and used the move tool to move the contents of each layer. When I play the animation I see the layers in the position I put them in. I stop playing the animation the contents of each layer snap back to their original positions. I have tried using the lock tools (both lock position and lock all) but they don't make a difference. why layer positions would reset when creating animations and how to get it to stop?
View 6 Replies
View Related
Sep 22, 2013
How do you get window size and position incorporated into Photoshop CC workspaces?
View 3 Replies
View Related