Illustrator SDK :: Open Action To Write Down Different Path
Nov 2, 2011
to get Illustrator to open the files I needed (I open various files based on input from the user).Then I want to save them back off again using a variance of the file path of the file that was opened.I am having difficulty getting the file path of the open doc ... trying to use
ai::FilePath aiFile();
sAIDocument->GetDocumentFileSpecification(aiFile);
XCode is very unhappy with me at the moment. It is telling me that I am illegally referencing the FilePath object from inside of my button proc.
I don't know if I have the right includes in the file or have obtained the correct suites for what I want to do.The api reference says not to use the AIFilePathSuite but to use the ai::FilePath as a wrapper instead. Any examples of the SaveAs?
Basically what I want to do is take the file I have opened using the OpenAction and modify the path (take off the file name, and the last folder and then append the new folder name and file name). Then perform the save as (using native file format).
//save the doc as id.ai in a folder named as id to hold supporting files
ai::FilePath aiFile;
sAIDocument->GetDocumentFileSpecification(aiFile);
aiFile.RemoveComponent();
aiFile.RemoveComponent();
std::stringstream out;
out << "\" << displayedLogo->getLogoID().c_str() <<"\"<<displayedLogo->getLogoID().c_str()<<".ai";
aiFile.AddComponent(ai::FilePath(ai::UnicodeString(out.str())));
View 16 Replies
ADVERTISEMENT
May 31, 2012
Is it possible to rename a path as part of an action?
View 1 Replies
View Related
Aug 30, 2012
I am trying to record an action to find the center of a polygon with the following commands
1. Select the object
2. Copy and Paste in Front
3. Select > Object > Direction Handles
4. Cmd+X (Cut); do not deselect
5. Object > Path > Average: choose both axes
6. View > Guides > Make Guides
All is good & well except that step 5 never gets recorded as an action step.
View 2 Replies
View Related
Apr 17, 2013
I change between screens a lot when using Illustrator. If I am in the middle of making a path and then try to come back to it the last anchor point only has one handle. Then I have to go and convert it but that repeats the entire process.
For example if I wanted to connect to the below path, hovering over the anchor point would switch to this: but that leaves me with an anchor point and one direction handle. This makes for poor curves There must be a quicker way then having to convert each anchor point no?
View 6 Replies
View Related
Sep 10, 2013
If I have an object that has a large stroke set to align to inside and I outline that stroke, the resulting inner shape isn't a closed path. While this is easy enough to fix, I was wondering if there was a way to avoid it alltohether?
View 5 Replies
View Related
Oct 7, 2012
How would one generate a shape (e.g. a roto'd shape that is tracked) and enable its use as a path for a text write-on?
The text node only has one input and if I set text to write on a path then there is only a straight line to manipulate from scratch - with no options to load or save or connect as far as I can see...
View 2 Replies
View Related
Oct 8, 2012
I want to open a "Save File Dialog " with some default path.Like when user run that script I want to open a "Save As" dialog box with default path "/Volumes/<shared name>/<folder name>/.. ."I am using File.SaveDialog(prompt, filter);
but it doesn't open to the location by default that I want to open.
View 2 Replies
View Related
Nov 13, 2013
trying to write a macro to open to a specified directory.
SendKeys "^(o)"
SendKeys "\G-SERVERCorel Draw files
SendKeys"{ENTER}"
Problem is that it doesn't type the text exactly as given. Randomly drops off the first few characters.Because hitting open defaults to the libraries instead of my server where the files are located.
When you hit open the cursor is already in the "File name:" field so if I just type the directory there and hit enter it takes me to that directory. Sure would be nice to just have it type that for me and enter. Had it working great for a few times but aftaerr navigating around for a bit it drops off those characters.
View 9 Replies
View Related
May 4, 2012
I created a 3D text and a 3D path. Now I simply want the text to follow the path (the text should always look at me, so I can read it). But as soon as I connect the path to my axis of my text, the letters are being pushed together. No matter what path settings I try (Look at... etc) the letters don't extend back to their original "position"
Smoke 2012 SAP2 SP4
and
Smoke 2013 SP2 (Smoke Classic Keyboard Shortcuts)
Mac Pro 4,1
OS X 10.6.7
12 GB RAM
NVIDIA Quadro 4000
14 TB RAID (Areca)
View 2 Replies
View Related
Oct 3, 2011
I have mi server in a OS X Lion machine, and I can´t open and write .max files from network drive (read/write error like a corrupt file).
At first time I thought in a permissions problem, but after try different options with owners and users, I can´t found a solution.
Working with a Network drive hosted in OS X server?
I have 10.7.1 with server add, users created and server drive mapped to Z: in windows. I can read/write textures and other files except .max
View 2 Replies
View Related
Dec 19, 2012
I was recording some actions for photoshop elements using paths and noticed something strange in photoshop cs6 13.01 on windows 8.
.
Recording an action of filling a path or making a selection from a path, didn't seem to record the settings.
Steps to reproduce:
1. Select the Rectangle Tool and set the option to paths in the tool options bar.
2. Draw out a rectangle.
3. Save the workpath in the paths panel by double clicking on the path thumbnail in the paths panel.
4. Make a new action and hit the record button.
5. Try using the Fill Path (from the flyout menu in the paths panel) with dialog and set to whatever option you want.
(i used 50% Gray in my test)
6. Try using the Make Selection with dialog from the flyout menu in the paths panel.
Neither action seems to record the parameters (settings). Playing back the action uses whatever the last settings were.
I expected the settings to be recored as photoshop 7 does (second action in the screenshot below) Photoshop cs6 13.01 is the first action shown.
View 2 Replies
View Related
Jul 20, 2009
I have some deifned actions in CS4. At one point I would like to save the file at a pre-defined quality. When I record that Save As part it also stores the path where to save the file to. I would like to remove that path. How can I do it?
View 6 Replies
View Related
Jun 11, 2008
Using photoshop cs2.
I have a few actions to speed things up, but now i need to use the same actions but with different directory structures. Is there an easy way to just change the path used in an action?
I've tried using a hex editor to do the job but, photoshop fails to load the updated action.
View 5 Replies
View Related
Nov 25, 2013
I'm doing an animation with simple camera moves. One of them is a camera moving slightly around an object. I want to make a "look at" or similar, so that the object is always in center no mater where i move the camera. This works untill i connect the camera to a 3D path - then the aim follows the path - not the camera :-|
How can i animate a camera on a path and make the aim stick to a certain location in my scene?An extra question: How can i make an object move at a steady speed on a path no matter how i drew my path (hope this makes sense)?
View 3 Replies
View Related
Sep 9, 2011
Is it possible to animate an image along a path? Or can you only track text on a path?
View 1 Replies
View Related
Feb 14, 2014
How do I write a javascript code to open InDesign template, import XML, save and export to pdf?
writing the javascript code to open the InDesign file, import some xml that will be randomly coming in and then saving the document.
View 1 Replies
View Related
Jun 5, 2012
I'm trying to open a file to write to on my external drive, I get this message "bad argument type: stringp nil".
View 8 Replies
View Related
May 11, 2012
I have some negative space I created(black area, see first image) that I want to fill with type, not just a simple fill.
Basically I want to create the negative space from a bunch of small minus signs(-) that need to line up as they go across. If I type on each path one at a time as the text doesn't line up that way. This needs to be one continuous path. (see second image)
Unfortunately if I add them together, it creates a compound path, which you cannot type on, unless I am mistaken? So I need them to be a path, not a compound object.
View 6 Replies
View Related
Aug 31, 2013
In illustrator, is there a way to reduce anchors points in a segment path without altering the path?
Is there a better and more efficient way to reduce anchors points than using the pen-minus tool?
View 6 Replies
View Related
Jan 11, 2013
I need to prepare a linked chain araound a defined path. (Please have a look at the attached drawing) My idea is to have one element of the chain defined as a dynamic block and to manually "rotate" one side of the chain element. After that inserting the next element (previously aligning the user coordinate system) and "rotating" the right part again to the next position...
After doing the rotation, the block definition will change and the next block will be "disformed". So far no big problem, but the grip of the rotation parameter will stay there and I am not able to "rotate" the right part back into the old position (0 degree).
View 4 Replies
View Related
Jan 9, 2013
I've tried every permutation of copy and paste; I renamed the path to path. It looks like a path when I add stroke, but it does not behave like one. I can't cut it or join it to any other path. It remembers it's text path status. I'm running OS X 10.7.5.
View 11 Replies
View Related
Mar 20, 2014
I accidentally converted a path to a text path. I searched the forum for how to convert it back to a regular path. The answer I found said to select the path and hit Command+C+F. This gives me another text path! I now have at least 6 copies of the path in my files but they are ALL text paths and none are visible with a stroke.
View 5 Replies
View Related
Apr 10, 2013
I've got two paths. They don't intersect, exactly, a straight path ends at a curved path, but I need the end of the straight path to be curved, to make it look like the two meet perfectly. The two gray paths (a single path, then path->offset for the second) are the outside of a shield shape. The two black lines (paths) just surround text, but currently they overlap the gray paths.
View 2 Replies
View Related
Jul 11, 2013
Is there any function or script that auto-adjust tracking so text on a path meets the exact end of the path/bracket?
View 4 Replies
View Related
Oct 3, 2012
Once you've used a path to put type on, how do you get the path back? Everything I do to recover the path deletes it.
View 2 Replies
View Related
Jun 25, 2012
How can I can write Arabic in Adobe Illustrator CS ? I use Adobe® Creative Suite® 6 Design & Web Premi
And I write Arabic in Adobe photshop CS6 but I can't write in Illustrator and indesign
View 8 Replies
View Related
Sep 23, 2013
how can i write text without a font?
View 5 Replies
View Related
Jan 26, 2014
When I hit (t), i click anywhere and start to type but nothing shows up. its a blinking dot. Even if i make a text box, nothing will show up not even a blinking cursor.
View 1 Replies
View Related
Jan 9, 2014
i want to write text in multiple launguage on illustrator how can i do that ?
View 2 Replies
View Related
Sep 30, 2013
When I take the Type tool and draw a text box it simply draws a box with no fill or stroke and I can't type in it. When I simply click with the Type tool, a one-pixel dot appears and blinks like a input cursor, and when I type it blinks like it should be moving but it's not. I can't write any text whatsoever...
View 3 Replies
View Related
Nov 17, 2004
Is it possible to put as part of an action 'open the file that's selected in the file browser'. At the moment I select files and then run a batch process, or open the file and then run an action, but can I skip that stage?
What I have in mind is being able to look over the file browser to see which action each file needs to have run, but to be able to just click an action button and for it to open that file and run the action, etc.
View 4 Replies
View Related