Illustrator Scripting :: How To Get Similar Transforms With Rotate And Translate
Nov 5, 2012
I want to get similar transforms with rotate and translate as I get it with the Transfommation Effect on multiple copies. But somehow the rotation of the Filter puts a different transform than doing it with rotation in js. With js the copies get rotated around a center, that is on the same level for all objects. With the filter the translations seem to have an different origin/direction. I dont get the logic how to get the same output with js.
View 5 Replies
ADVERTISEMENT
Apr 29, 2011
What would be the best strategy on the usage of data set to translate our product packaging. It's quite complex as we have several languages on the same packaging. Moreover, we have different text sources that would require to be translated in different sets of languages.
I have already looked into the data set and I tried to get familiar with it. How to create the data set and how to name the different variables knowing that there are different source texts for a particular region (region means a set of languages) and other texts for another region... The idea is to export this into one XML file with well identified elements that can be split with a tool, sent for translation according to their region then merged back into one single file to be imported back into illustrator
Region 1:
en-US
text 1
text 2
fr-FR
text 1
text 2
de-DE
etc...
Region 2:
en-US
text 3
text 4
ru-RU
text 3
text 4
Region 3:
etc..
It seems that the formatting such as bold, italic and so on is not exported into the data set which is quite embarrassing.
View 9 Replies
View Related
Jul 10, 2013
I have a document with a single layer and a single group (GroupItem) in that layer.
Unfortunately, I didn't create the .ai file, so I don't know exactly what is in the group; however, there appears to be a bunch of complex clipping masks and gradient effects, etc. deeply nested within it.
I've successfully scripted a few tasks like resizing the group with no ill effect... in other words, this works as expected:
app.activeDocument.activeLayer.pathItems[0].resize(50,50);
However, as soon as I try to move/translate/reposition the group, all the effects/masks seem to go wonky, I've tried all of the below with no success (200 is just arbitrary as a test):
app.activeDocument.activeLayer.pathItems[0].left = 200;
app.activeDocument.activeLayer.pathItems[0].translate(200,0);
I have no problem moving the group around on the document with my mouse... all the effects/masks are still nice and clean, so I'm confused as to why I can't do the same thing via JavaScript.
View 3 Replies
View Related
Jul 25, 2013
I'm trying to resize a opacity mask by doing
transMaskItem.resize(
10, //scaleX,
10, //scaleY,
true, //[,changePositions]
true, //[,changeFillPatterns]
true, //[,changeFillGradients]
true, //[,changeStrokePattern]
0.1, //[,changeLineWidths]
)
This resizes the item, but it does not resize the item inside it. I tried similar command with the translation command
transMaskItem.translate(
100, //([deltaX]
100. //[,deltaY]
True, //[,transformObjects]
True, //[,transformFillPatterns]
True, //[,transformFillGradients]
True, //[,transformStrokePatterns])
and similar thing happened. The item gets moved, but the object inside it doesn't.
How do I resize or translate an opacity mask along with the items inside it?
View 5 Replies
View Related
Aug 10, 2012
Is there a way to select similar objects (by stroke color) programatically?
View 3 Replies
View Related
Apr 19, 2012
in an open PDF File i press 'Ctrl+A' to select all Items in the document, then i choose Edit/Transform/rotate ... 90 degree.now i'd like to do the same with an vbscript.
the best thing i could find is:
rotate(90)
Sub rotate (degree)
Dim appRef, argument, element
Dim changePositions, changeFillPatterns, changeFillGradients, changeStrokePattern, rotateAbout
Set appRef = CreateObject("Illustrator.Application")
[code]....
not all, but all elements i am interested in are rotated - it would be better if really all elements would be rotated the elements are rotated around 'aiTransformDocumentOrigin' ... i would prefer if they are rotated around 'middle of document'.
View 3 Replies
View Related
Jul 26, 2012
I'm using the variables panel in Illustrator to pull a data set I've got.
For example there's 2 text variables and 1 number going from 0-359. I'm looking for a script which looks at the variable name and pulls the number, then uses that number to rotate a shape by that many degrees.
View 2 Replies
View Related
Jun 25, 2012
i am creating a logo for a friend. I have an image that I drew, made transparent and then 3d. I want to save it as a pdf or jpg or png and when I try it, it eliminates the transparency effect.
Below is what it looks like when saved in PDF and any other format.
View 1 Replies
View Related
Jan 22, 2013
I want to translate some English words into Hindi in Illustrator. But almost everytime I do so, the spelling changes to an incorrect one in Hindi. I would like to know how to avoid this. I use google translate first to translater the word, then copy and past the word into Illustrator. I then change the font to Devanagiri Sangam MN so the Hindi characters are displayed instead of the ascii code when pasted.
View 6 Replies
View Related
Feb 6, 2013
How to compare two similar solid model and found where its differetiate is, and how to compare two similar drawing let say rev.1 to rev.2 and found where its differentiate is?
View 1 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 6, 2012
Can you access graph data through the scripting DOM?
View 3 Replies
View Related
Aug 29, 2013
Find out an option in coreldraw x6 which exactly similar to adobe illustrator cs4 as below
storke / align stroke / align stroke to center / align stroke to inside / align stroke to outside
5270.DO NOT STEP.pdf
how can i create a attached rectangular sticker 150mm with x 40mm height with outline 2mm width and that outline width did not go out dimension of 150mm x 40mm
View 4 Replies
View Related
Jul 25, 2012
Is there a text editor window in Illustrator similar to Freehand? I want to be able to edit text without constantly having to zoom in so that I can see the text, then zoom out again to see the whole page.
In Freehand, you could select a Preference that would open a Text Editor window that was consistant in size no matter what the zoom level was. You could opt to show the text in 12pt Helvetica or in the actual font and size. This was enormously useful in organizing and shaping the size of the text.
View 13 Replies
View Related
Jan 31, 2014
I am developing a plugin which is supposed to fill contents (text/image) from external source into a ai file that has placeholders. So far I am able to get the text part working using text frames. I am however not able to figure out a way to provide placeholder for image. Is there an equivalent of textframe for image? what are the alternatives?
View 5 Replies
View Related
Mar 1, 2014
why my drawing on illustrator won't export at maximum resolution when a nearly identical drawing can.
View 2 Replies
View Related
Oct 26, 2012
we created a heavy file (1.14GB) with many masks. and now they seemingly developed a life of their own: they look like big cubes or pixels. and this transforms/destroys the whole picture. what can we do to save the file.
View 8 Replies
View Related
Mar 16, 2013
the Script of creating mirror text and stroke text in Adobe illustrator scripting.
View 4 Replies
View Related
Dec 7, 2011
Let say I create a sphere and under Channel / Layer Editor tab, I right click on the pSphere1 and it gives me the option to Freeze my object reseting everything to 0,0,0.
I would like to have this function in my own Custom tab. But since I can't find it under anywhere in Maya menu.
View 2 Replies
View Related
Jan 31, 2014
I have been trying to do a software box.
Photoshop has a transform that will scale and distort.
I can't find anything like that in paint.net.
Have I missed it in the plugins?
View 4 Replies
View Related
Sep 3, 2013
I notice that Nulls have a collapse transform switch. Just trying to imagine when this would be useful. Something related to the nifty "Scale Z" precomp trick, maybe?
View 2 Replies
View Related
Nov 30, 2011
I am trying to throw a screen shot up onto a TV model to make my rendering more fun and I can't get it to work right!!!
I duplicated one of the standard plastic materials in Revit's lib and replaced the color with a cutom image (first tried jpg then png). I had to tweak the transforms to get it to fit the screen. Looks great in the camera view but when I render the transforms are off.
Here are some images to illustrate the issue.
View 2 Replies
View Related
Feb 22, 2012
I bought the lightroom 3 cd and installed it. When I downloaded the 3.6 update and tried to install it, I got this error message : Error applying transforms. Verify that the specified transform paths are valid. Ive tried uninstalling the 3.2 version and then installing the 3.6 version, but that didnt work either.
View 8 Replies
View Related
Oct 15, 2013
So, when I reset the transforms of an object, it moves the geometry back to the frozen position but the pivot point gets places at the world origin.
That can't possibly be what is supposed to happen, is it?
View 2 Replies
View Related
Jan 27, 2013
I'm creating a flow chart/decision tree. I am animating the position of a diagram on the stage when a user selects yes or no in answer to a series of questions.
I've split up each diagram movement on the stage timeline as labels. I've staggered these transforms as keyframes on the same layer/track. The issue I'm having is when I manipulate the position of my diagram by moving it on the stage it affects adjacent transforms. I have my transforms seperated with a 1/10 second gap becuase I thought this would split the timeline up but it appears not!
While I can edit the transforms manually by typing in xy co-ordinates it would be ten times faster to move the diagram on the stage instead and not overwrite adjacent transforms.
How do I restrict the transform to the two keyframe points I am concerned with?
View 3 Replies
View Related
Mar 6, 2013
I am trying to use the rotate tool in CS6, I have created a petal, I then use the rotate tool to reposition the axis rotation pint, then when I double click to bring up the dialog box or if i go Object>Transform>Rotate the Axis point shifts back to the centre of the petal.
View 6 Replies
View Related
Jul 20, 2013
I know it's not possible to do that like in Photoshop (I have submitted a feature request).
How do you handle this problem when drawing with a tablet?
View 1 Replies
View Related
Aug 20, 2013
how do i rotate the entire document?
View 2 Replies
View Related
Sep 17, 2013
I'm having an odd issue in Adobe Illustrator. When I create a shape and go to rotate it by selecting the object and hovering near a corner, I'm expecting my selection tool to change to the arc with arrows indicating that I can rotate the object. This isn't happening, the arc is not appearing and my selection tool is turning into an anchor point selection tool.
View 4 Replies
View Related
Oct 3, 2011
How can I rotate a pattern within a shape?
View 8 Replies
View Related
Dec 4, 2012
I'm new to AutoCAD and have made a 3D model of a specific mounting bracket.
Now that I have the 3D model, I want to 'translate' it to a 2d layout so I can put some dimensions in it and bring the drawing to a local mechanical engineer. Here's the file of the drawing:
SL135_Mounting_Bracket.dwg
View 2 Replies
View Related