Friday, March 26, 2010

Tag lifecycle

A simple question about Tag. For a given tagged object, after having applied filters on it, will its tag still there?

for instance:

- tag a path, then transform it, add points,........ will it still tagged correctly?

- tag a path, distort it, will it still tagged?

- tag a path, use pathfinder plugin, will it be still ok ?

Thx,

Thomas.

Tag lifecycle

This is something that has concerned us at Avenza for years since we make heavy use of tags (well, now dictionaries since they're far superior, but same idea).

Basically, you just have to try every operation to see what happens to the art. If the handle stays the same, the tags/dictionaries survive. If not, they're gone. There appears to have been no effort made by Adobe to preserve dictionaries (I'll stop mentioning tags now since they use dictionaries and are a subset of functionality) across various operations. To be fair, its not always obvious what should happen. If you cut a path in two, should you copy the dictionary to both? If you make a compound path out of two paths with dictionaries, whose would you promote to the compound parent? Should you at all?

Note that in this last case, the dictionaries are preserved since the original paths aren't deleted or really altered, simply moved inside the kCompoundPathArt container.

As for your three specific cases:

1) Tag should be preserved

2) Depends on whether the distortion creates a new path; probably preserved though

3) The original path may survive inside the resultant kPluginGroupArt, but unless you specifically walk inside the kPluginGroupArt you won't see the tags -- the kPluginGroupArt created as a result certainly won't have your tag

Hope that answers your questions!

Tag lifecycle

Thx Andrew for this quick reply! It was very helpful.

I have to check every actions, operations, filters to be sure what will going on.

Tag suite is now considered ''obsolete''. We can handle this with using Dictionary suite, but I do not need all dictionary functionalities.

I need only to add ID (string ID) for each handle, that's all. this could be done easily using Tags.

But what about for memory usage for this suite compare to Tag suite ?

Best regards,

Thomas.

PS: nice plugin you've done! impressive.

Tag suite is now considered ''obsolete''. We can handle this with using Dictionary suite, but I do not need all dictionary functionalities.

I need only to add ID (string ID) for each handle, that's all. this could be done easily using Tags.

But what about for memory usage for this suite compare to Tag suite ?

Thanks Andew!

I am going to look at AIUID.h to check if it is what I need, and let you know if it was what I was looking for.

Thomas.

No comments:

Post a Comment