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
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())));
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.
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?
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?
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...
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.
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.
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)
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.
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?
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.
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)?
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.
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).
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.
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.
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.
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.
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...
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.