Skip to main content
Participant
June 17, 2011
Question

How do I script the feather properties of an item? (VB)

  • June 17, 2011
  • 3 replies
  • 571 views

I'm trying to access an objects feather paramater by vb script but I can't seem to find a way to do it. In this particular case it's a polygon that on which I want to turn off feathering. I have found references to FeatherMode but haven't been able to imblement it.

Thanks in advance.

/Johan

This topic has been closed for replies.

3 replies

fernoldAuthor
Participant
June 22, 2011

@Laubender

Thank you, I'll try to vb-ize that!

@Kasyan

Is this a vb-only limitation maybe?

Kasyan Servetsky
Legend
June 22, 2011
Is this a vb-only limitation maybe?

No, the same is in JS and AS.

Thanks Laubender for the answer; now I know how to check if drop shadow or basic feather is applied to an object.

Regards,

Kas

Community Expert
June 21, 2011

@Johan:

Sorry, I cannot help with VB Script, but in JavaScript you can set the properties with:

app.selection[0].transparencySettings.featherSettings.mode =  FeatherMode.NONE;
app.selection[0].transparencySettings.featherSettings.width =  0;
app.selection[0].transparencySettings.featherSettings.cornerType =  FeatherCornerType.DIFFUSION;
app.selection[0].transparencySettings.featherSettings.noise =  0;
app.selection[0].transparencySettings.featherSettings.chokeAmount =  0;

Note: you cannot set cornerType to "NONE". By default the property is set to "DIFFUSION".

Uwe

Kasyan Servetsky
Legend
June 21, 2011

I am afraid it's impossible to do because FeatherSettings and DropShadowSettings, unlike the other setting, are missing the Applied property.

In my opinion this is a bug. I wonder if it has been fixed in CS5.5.