Quantcast
Channel: Adobe Community : Popular Discussions - After Effects Expressions
Viewing all articles
Browse latest Browse all 47983

Math.round for Shape layers to land on whole pixels?

$
0
0

Trying to keep my shape layers on whole pixels to avoid subpixel blurring.

 

For one-dimensional properties, this works fine:

 

Math.round(value);

 

But for two dimensional props, I'm running into errors with things like this:

 

temp = Math.round(content("Rectangle 1").content("Rectangle Path 1").size.value)

(temp[0],temp[1])

 

temp = Math.round(content("Rectangle 1").content("Rectangle Path 1").size)

(temp[0],temp[1])


 

I'm sure my syntax is off. Properties in arrays always give me problems. Can you help?


Viewing all articles
Browse latest Browse all 47983

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>