Page 1 of 1
Copy vectors and styles from one file to another
Posted: Sun Dec 10, 2006 4:05 am
by heyvern
I didn't know you could do this dagnabbit, so just in case there are others unaware of it I will post it.
You can copy points and shapes and styles from one document, close it, open another document and paste those points. It will keep the fills and shapes and also use the styles associated with it without tagging on the name of the file or layer it came from as it does when you import an AS or Moho file.
Up till now I always imported shapes using import/moho object. This would always tag on the name of the file and layer to the style even if a style with the same name already existed. It made organizing styles a pain in the arse.
If you copy and paste as I described above it uses the style of the open document if it has the same name as the one pasted. If it doesn't exist it creates it in the styles palette. This is brilliant and will save me some work in the future.
-vern
Posted: Sun Dec 10, 2006 4:41 am
by artfx
Great tip. Glad to find this kind of stuff as I just get into things.
Posted: Sun Dec 10, 2006 11:43 pm
by Genete
If it doesn't exist it creates it in the styles palette.
It does not work for me. Let me show the steps to try to find if I do something wrong.
Files: FileA, FileB
Styles:
In FileA: Style1 (red fill) and Style3 (black fill)
In FileB: Style1 (blue fill) and Style2 (yellow fill)
FileA: One shape green filled with a style applied Style1 so it becomes red.
FileB: Other shape white filled with style applied Style1 so it becomes blue
Steps:
1) Open FIleB select points of shape and press copy in Edit menu. Select style Style1 and press copy in Style window.
2) Close file
3) Open FileA
4) Edit-> Paste and then the shape is copied and Style1 is applied (form FileA, red)
5) Select the shape. Then press paste in style window and the it applies the copied style on the just copied shape. Now it looks blue.
Now the shape shows like style1 from fileB. OK I can use Style1 from B or for A symply unchecking the Line color and File color checkboxes.
Other trial:
Open FileB and apply Style2 instead of Style1 into the shape. It becomes yellow.
repeat steps 1 to 5.
Now the shape continue looking as Style2 from file B but none new style is created in Style window.
I don't now if something is missing...
BTW I'm using AS Pro for linux Beta version.
Regards
Posted: Sun Dec 10, 2006 11:52 pm
by Rasheed
The style tag is conserved, not the style itself. This means you can copy the object and don't have to reapply styles to the shapes, only create the styles in the new document, or use existing styles with the same style names.
Posted: Mon Dec 11, 2006 3:54 am
by heyvern
Sorry, I never checked if the styles were overwritten or what. I have a dozen files all with identical styles. In the past I would import moho files and the exact same style would be duplicated with the imported files name. I ended up with bunches of duplicated identical styles.
Now by copying and pasting the vectors everything uses the same styles without duplication.
I would expect that if you do some funky things with different styles with the same names it might be possible to get some odd or unexpected behavior.
For me if the styles are all the same I wouldn't have any trouble.
-vern
Posted: Mon Dec 11, 2006 8:27 am
by Genete
heyvern wrote:Sorry, I never checked if the styles were overwritten or what. I have a dozen files all with identical styles. In the past I would import moho files and the exact same style would be duplicated with the imported files name. I ended up with bunches of duplicated identical styles.
Now by copying and pasting the vectors everything uses the same styles without duplication.
I would expect that if you do some funky things with different styles with the same names it might be possible to get some odd or unexpected behavior.
For me if the styles are all the same I wouldn't have any trouble.
-vern
Don't worry it is a great tip anyway!!!
Thanks for share it.