ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Turn on "Continuously rasterize" via expressions or scripting

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Juan Bosnic
Turn on "Continuously rasterize" via expressions or scripting
on Jan 3, 2012 at 3:23:15 am

Hello everyone! Thanks for the great help you offer to us, self-educated AE-mateurs...

Case: I am writing a script (.jsx file) and at some point I need to convert a layer to 3D, and also activate the little "sun" aka "Continuously rasterize" icon.

I got the 3D part working by using this line of code
layer.threeDLayer = true;

However I couldn't find the keyword to activate Cont. Rast. on it
layer.contRast = ?????

Any idea on how this could be done?


Return to posts index


Dan Ebberts
Re: Turn on "Continuously rasterize" via expressions or scripting
on Jan 3, 2012 at 4:29:57 am

Like this:

layer.collapseTransformation = true;


Dan



Return to posts index

Juan Bosnic
Re: Turn on "Continuously rasterize" via expressions or scripting
on Jan 3, 2012 at 4:48:19 am

I was betting on you to answer Dan.
Of course that worked!

Don't you guys consider this type of short/basic threads a kinda waste of cyberspace?

It would be great if there was a full scripting dictionary that merely lists keywords in alphabetical order and a few words describing what they do. Like the material you get if you search for "Javascript functions" or "full PHP keyword reference".

Does anybody know of anything like that?


Return to posts index


Meng Zhang
Re: Turn on "Continuously rasterize" via expressions or scripting
on May 15, 2017 at 4:18:03 pm

How to get same function for Comp? For example, if I just pre-composed a AVLayer and I want to get the newComp raterized automatically. Is there a way to do it?

Thank you!

var newComp = activeItem.layers.precompose([curLayer.index], curLayer.name, false);

newComp.(?)


Return to posts index

Dan Ebberts
Re: Turn on "Continuously rasterize" via expressions or scripting
on May 15, 2017 at 4:54:15 pm

I haven't tested it, but it should be close to this:

var oldComp = app.project.activeItem;
var newComp = oldComp.layers.precompose([curLayer.index], curLayer.name, false);
oldComp.layer(newComp.name).collapseTransformation = true;


Dan



Return to posts index

Meng Zhang
Re: Turn on "Continuously rasterize" via expressions or scripting
on May 15, 2017 at 5:03:51 pm

Dan,

That's very smart solution. Thank you for quick response!

I will test it out and post the result here.


Return to posts index


Meng Zhang
Re: Turn on "Continuously rasterize" via expressions or scripting
on May 15, 2017 at 6:11:13 pm

Dan,

Just let you know it works like a charm. Thank you for providing awesome solutions all the time.

Cheers,
Meng


Return to posts index

Sumesh Surendran
Re: Turn on "Continuously rasterize" via expressions or scripting
on Dec 12, 2019 at 5:03:41 pm

I found a script for "Continuously rasterize"

https://gumroad.com/l/HMwmw

but this script is not working for me, getting an error

Unable to execute script at line 23. Bad argument - Expected: }


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2020 CreativeCOW.net All Rights Reserved
[TOP]