Skip to main content
Participating Frequently
December 14, 2015
Answered

How to scale an object and also scale the effects (transparencySettings)?

  • December 14, 2015
  • 1 reply
  • 385 views

I'd like to scale an object via scripting but also scale the effects, currently my resize doesn't do that. My effects are TransparencySetting: drop shadow, inner glow, outer glow.

For example using the following does not work:

pdf.resize(CoordinateSpaces.innerCoordinates, AnchorPoint.topLeftAnchor, ResizeMethods.multiplyingCurrentDimensionsBy, [pointSizeScale, pointSizeScale]);

I have to resize effects I have to manually for example:

thisObj.transparencySettings.dropShadowSettings.xOffset = dSXYOffset*pointSizeScale;

thisObj.transparencySettings.dropShadowSettings.yOffset = dSXYOffset*pointSizeScale;

thisObj.transparencySettings.dropShadowSettings.size = dsSize*pointSizeScale;

Thanks in advance!!

This topic has been closed for replies.
Correct answer Vamitul

I think that using a transformation matrix will solve your problem (pdf.transform(..))

1 reply

Vamitul
VamitulCorrect answer
Legend
December 14, 2015

I think that using a transformation matrix will solve your problem (pdf.transform(..))