Skip to main content
Inspiring
October 22, 2010
Answered

Paint strokes

  • October 22, 2010
  • 1 reply
  • 1118 views

Hello all,

I need help... Can i somehow create "strokes parameters" like in Paint effect (marked orange in picture)?

If i can't, please tell..

What is "stroke"? I did not find such object (item?) in SDK..

Regards, Glazistov Ivan.

Thanks.

This topic has been closed for replies.
Correct answer shachar carmi

hi softy (or is it Mr. 123__?)

strokes are dynamic streams, and are handled by the dynamicStreamSuite.

with that suite you can add remove and alter strokes and text layer params.

but if you want to create some new custom params that behave like the storkes, then it can't be done through the API.

i can give you 2 solutions.

lets say you want each new "stroke" to have 4 params: width, length, start and end.

then you could:

1. create your effect with 50 hidden groups, each with these 4 sliders in them.

and then unhide each group as necessary.

the user will just see new params pop up, without knowing they were there all along, hidden.

this is the easiest method.

it's only restricted by the amount of hidden groups you compiled your plug-in with.

2. create a dummy effect with these 4 sliders, and add new instances of that dummy to the layer, whenever you need more "strokes".

this method is more flexible than the first, as no redundant params exist, and you can add as many as you want.

however it's much much more complex to pull off.

that's the best a could come up with.

i hope this helps.

:-)

1 reply

shachar carmiCommunity ExpertCorrect answer
Community Expert
October 23, 2010

hi softy (or is it Mr. 123__?)

strokes are dynamic streams, and are handled by the dynamicStreamSuite.

with that suite you can add remove and alter strokes and text layer params.

but if you want to create some new custom params that behave like the storkes, then it can't be done through the API.

i can give you 2 solutions.

lets say you want each new "stroke" to have 4 params: width, length, start and end.

then you could:

1. create your effect with 50 hidden groups, each with these 4 sliders in them.

and then unhide each group as necessary.

the user will just see new params pop up, without knowing they were there all along, hidden.

this is the easiest method.

it's only restricted by the amount of hidden groups you compiled your plug-in with.

2. create a dummy effect with these 4 sliders, and add new instances of that dummy to the layer, whenever you need more "strokes".

this method is more flexible than the first, as no redundant params exist, and you can add as many as you want.

however it's much much more complex to pull off.

that's the best a could come up with.

i hope this helps.

:-)

Inspiring
October 25, 2010

Thx, Shachar Carmi.

I realized that I can only add something using its "match name" in indexing group stream such as "ADBE Effect Parade".

So i can't create indexing/named parameter stream group or atom parameter stream inside of my effect...

Am I right?

>>or is it Mr. 123__?

maybe..

Thx for replying and ideas.

Community Expert
October 25, 2010

true.

as far as i know, you can only add stream groups and atoms of existing types,

and you can't create custom types of your own.