Does anyone know where could i find the expand method correponding to function called when ''Expand'' button is click!
I have played with several method found in AIPathfinder.h or AIExpand.h, but without success.
If someone could gve a tip, it will be great.
Thanks,
Thomas.
Pathfinder expand method.*is clicked !
Pathfinder expand method.I'm about 99.9% sure AIExpandSuite::Expand() is the method you want. We use it a fair bit in our stuff and it seems to work. What kind of results are you seeing?
I've already tried this method, without success.
After creating compound shapes with pathfinder plugin (user action), i want
to expand this shapes to have only a single path. (with stroke and fill).
result?= sAIExpand-%26gt;Expand(art, kExpandPluginArt,NULL);aisdk::check_ai_error(result);
in addition, when ''Expand'' button?from pathfinder is clicked, there is a single path as a result.
I actually haven't used it for kPluginArt but it works great for graphics styles What do you get when you run the code you posted? I would have thought that expanding kPluginArt should just copy the contents of the Draw Group into its parent kPluginArt's layer and then delete the kPluginArt. Is that not what's happening?
I've made some screen shots. This will be easier to understand.
The first image is how is structured a compound shape, using the pathfinder plugin:
The second one is this compound shapes after expanding it, using the Expand button of pathfinder plugin:
And the last one is when i use the Expand suite. (sdk):
What I want, is to have the artwork tree of the seconde image, using the sdk. (ExpandSuite::Expand()).
Thx.
Thomas.
It seems I've finally found a solution. May the one I've excepted, but I've got one.
I?tried to solve my probleme using the action scripts.
/version 2
/name [ 4
?74657374
]
/isOpen 1
/actionCount 2
/action-1 {
?/name [ 17
?6465636f6d706f5061746846696e646572
?]
?/keyIndex 0
?/colorIndex 0
?/isOpen 0
?/eventCount 1
?/event-1 {
?/internalName (ai_expand_compound_shape)
?/localizedName [ 30
?44c3a9636f6d706f736572206c6120666f726d6520636f6d706f73c3a965
?]
?/isOpen 0
?/isOn 1
?/hasDialog 0
?/parameterCount 1
?/parameter-1 {
?/key 2020634212
?/showInPalette -1
?/type (integer)
?/value 0
?}
?}
}
/action-2 {
?/name [ 19
?637265617465636f6d706f756e647368617065
?]
?/keyIndex 0
?/colorIndex 0
?/isOpen 1
?/eventCount 1
?/event-1 {
?/internalName (ai_make_compound_shape)
?/localizedName [ 26
?4372c3a9657220756e6520666f726d6520636f6d706f73c3a965
?]
?/isOpen 0
?/isOn 1
?/hasDialog 0
?/parameterCount 1
?/parameter-1 {
?/key 1835101029
?/showInPalette -1
?/type (integer)
?/value 0
?}
?}
}
Well, I always say that Actions are a decent fallback They're just annoying to use because of the selected-first stipulation.
Those screenshots are very illuminating. I know that the expansion via SDK always creates a group, but I didn't realize they were putting the stroke %26amp; fill on the group. That's good to know. A little annoying; I should see if there's a method somewhere to propogate stroke %26amp; fill from a parent to children. Probably not, but not terribly hard to do myself.
I still find it hard to believe that AIExpand.h isn't what the Expand in the menu does. I'm sure we're just not using it quite right. Of course, this is the perfect opportunity for someone from Adobe to swoop in here and help us out, but I'm not sure many (if any) read these forums
In fact, using the Pathfinder expand command may be the best solution.
We've got the same behavior and the same result.
I've fixed my problem!
Anyway thanks for the help.
Bet regards,
Thomas.
I still find it hard to believe that AIExpand.h isn't what the Expand in the menu does. I'm sure we're just not using it quite right. Of course, this is the perfect opportunity for someone from Adobe to swoop in here and help us out, but I'm not sure many (if any) read these forums
But i think PathFinder expand command behaves differently from the Expand method of Expand suite.
i totally agree with you! But right now I don't find the way they use the Expand suite to do this stuff!
PathFinder plugin acts differently in CS4. After applying an effets, the result object is already expanded. So no need
to do it by yourself.
No comments:
Post a Comment