Free Script: 3D Pre-Compose + Tutorial!

I finally got tired of doing this manually, so we created a free script!

What is this script for? The 3D Pre-Compose Script makes it easy to pre-compose 3D-aware layers by automatically copying all cameras & lights into the new comp with linked expressions! Just watch the tutorial to see all the amazing possibilities! Plus it’s Free!

Watch Tutorial on YouTube

Watch Tutorial on Video Copilot

What can you do with it?

  • Create displacement maps out of 3D aware layers
  • Isolate 3D layers for different lighting setups in the same scene
  • Disable DOF for certain layers
  • Lens Flare obscuration maps in 3D: For Element 3d & Particular etc
  • Apply 2D effects to a 3D layer in screen space

Download Script

POSTED:
2 years ago
RECENT POSTS
Visualization Experiment and new Renders
Just playing around with a new After Effects experiment without using any 3rd Party plug-ins! I need to refine some parts of the effect but I really want to make a tutorial for it ASAP! Here are some other projects you may have missed! Using Element 3D bummp mapping to create some Gold coins and […]
New Tutorial: Realistic Rain Drop FX!
In this tutorial we’ll use After Effects to create a realistic water effect without any 3rd party plug-ins! Great for adding atmosphere to a rainy scene or title. This effect is fully customization and can be used to create many cool FX! In this tutorial: Create a dripping water displacement map Simulate realistic camera DOF […]
Destruction Experiment!
What is this thing! I’ve basically combined a bunch of stuff into one experiment! I might have been inspired by the amazing planet explosions from The Force Awakens but wanted to see if I could get a cool version inside Element 3D. Few Notes on this experiment; I added smoke elements, shockwaves using CC Sphere, and even […]
Gearing Up with Element 3D!
Gear Up! #aperture #Element3D A video posted by Video Copilot (@andrewkramer) on Jan 3, 2017 at 9:54pm PST Maybe I just love apertures but this was a fun project to make! Using a few motion design 2 objects I built this animating gear. I just created a collection of models on one group and distributed them […]
PLUG-INS
114 Comments

2 months ago
Super thanks! This saved me on a project I'm currently working on!!!!
phil
3 months ago
I got it to work using my own manual method. You'll have to go in and add your own expressions... customize your variables "main comp" "Camera 1" with your layer/comp names of the one camera you'll be editing.

comp("main comp").layer("Camera 1").transform.pointOfInterest
comp("main comp").layer("Camera 1").transform.position
comp("main comp").layer("Camera 1").focusDistance
phil
3 months ago
I went in and deleted line 75 section and following. No error, but it doesn't work.
alexandre
1 year ago
the script is AMAZING!!

however, it doesn't work in the project I currently work on :/ it says error at line 75.. any suggestion?

thx!
    Austin Bollinger
    7 months ago
    Same problem :(
Oree
1 year ago
Not working for 2015 :<
Joey
1 year ago
Hello i just upgraded to AE CC 2015 and now this plug-in will now work... The error is: http://prntscr.com/88hdkj

Anyone know how to fix?
    Kevin
    1 year ago
    Getting the same error.
Vincent
2 years ago
Thanks VC team. It is a nice plug-ins

A quick question: Does it work with E3D group null or camera null? I want to use it for Optical Flares and 3D obscure E3D in foreground. But seems that if I animate E3D with group null, the pre-compose output doesn't match with the original. Causing weird obscure
Ra’fat
2 years ago
thx anderw it was amazing script i love it so much
2 years ago
Amazing! Just purchased a template of a table with photos for AE, but realized that the table was MOV file with tracked photos placements and not a 3D layer.
http://videohive.net/item/wedding-photos-slideshow/4565295?WT&ref=Ary1378
Instead of a wasted 32$, I quickly 3D precomped the photos comp layers and inserted a new table cloth :)
Dove
2 years ago
VC and Kramer are why the businesses that hire me think I know what I'm doing! Thanks guys.
I know this is an old thread but maybe someone can help me. I've downloaded the script, but when I go to FILE > SCRIPTS> the options that pop up (run script, open script editor, list of installed scripts, etc.) are darkened/un-selectible. I'm still working with CS 5.5 and my OS X is Mavericks. I know that in some ways AE 5.5 has some problems with Mavericks (e.g. the color picker will crash AE) so maybe that is the issue. Surprising to say, seeing the field I'm working in, I'm pretty computer ignorant. Anything might help.
2 years ago
another amazing tutorial from androw. tnx for sharing us
let me know
2 years ago
make this avaliable for educational use and it will play easly on lausd computers....
presently these vid lesson are filtered from playing ..

lausd has over ten thousand computers with adobe software ,
please get this matter taken care of ....
Arthur
2 years ago
Thanks, I have to precompose 116 layer from C4D and the interface disappear after 1 precompose any suggestion ?
Thanks Andrew it's AWESOME u are simply the best
Denzil
2 years ago
Hey, could someone help please?
How do I get the sound/audio to work? I don't have any sound like he does..
good after effect tutorial, tnx andro
Adrian
2 years ago
i hope one day became someone like you are, greetings from CUBA.
Chris
2 years ago
I got a feeling... (ooh ooh)
that next week will be the best week
that next week will be the week we are waiting for...
shaun viks
2 years ago
oh thanks man..... i was just working on a project and i wanted some cool lens flair behind the 3d layer look but i just couldnt get it right.... u r a life saver
Joel
2 years ago
AE Keeps crashing when I use this script. Im using AE CC2014 on a mac running OSX10.9.4
ramon
2 years ago
unable to execute script at line 75. Object is invalit
    Michael Corvin
    2 years ago
    I got the same error. Unable to execute script at line 75. Object is invalid. It seems to be a different error than the one others mention because of a camera linked to a null.
FX
2 years ago
how to release helicopter model Pack?
2 years ago
I'm a little disappointing. I asked a question regarding Mario's post above. I was having the exact same problem and wrote the question out twice. Twice it was deleted.....that surprises my guys especially when there is more than one person with the issue.
Xav
2 years ago
to those who got the following error :


After Effect undo group mismatch, will attempt to fix
After Effect can't continue: damaged item (26 :: 132)
Unable to execute script at line 105. After Effect can't continue: damaged item

I had it too and found out it was because my cameras were parented to null objects... if you can unparent them the script will work like a charm.

Anyways thanks Andrew for this awesome script, this would become a killer if :

-it could manage parenting options
-it was possible to dynamically add cameras and/or lights after having run the script... but I guess this might be tricky :)
    Alex
    2 years ago
    Xav, thanks so much for writing your findings on this. Was scratching my head as to why it kept crashing.
2 years ago
very very much

thanck you
2 years ago
Toxico! meaning Awesome!!!!
2 years ago
hi andrew i used cinema 4d to create a star dust just like our particular and tutorial also take a look and say how it is :)

http://gloriasriramanimation.blogspot.in/2014/08/star-dust-tutorial.html
2 years ago
Andrew Kramer, this is the kind of thing that should ensure that there is a religion which you would the god. haha :P thank you for continuing to teach us your wisdom :)
vipin
2 years ago
awesome script very useful amigo thanks for easing our work you are a Rockstar Andrew
2 years ago
That is nice! Andrew, thank you for my expirence. Check my music video maded with After Effects.http://youtu.be/t46uTAERCWM
Vince
2 years ago
Thanks again, Andrew!
mohammad
2 years ago
hi Guys

first vedio work at after effect and maya and mudbox and photoshop and premiere look that :
https://www.youtube.com/watch?v=ZUnyAuSO5oA


and this like film transform that in after effect element 3D
https://www.youtube.com/watch?v=ZUnyAuSO5oA

thank you
Daniel
2 years ago
I need help, my problem is not with lights or camera but the 3d layers going flat when i pre compose them. I used a script called dojo extruder which makes 3d from a pseudo effect but when I pre compose it makes it into a flat layer. How do I fix this?
2 years ago
Oh my God this is so useful!!! Thank you!
2 years ago
Wow Great!!!
incredible! simple and useful at the same time! thank you!
Morgan John
2 years ago
Thanks you guys rock... You brought simplicity to after effect in Nigeria
towhid
2 years ago
You are really Awesome Andrew!!!
Thanks a lot for your great Plugin...
could you please make a tutorial on, how to build this type of plugin ( .jsx or .aep) from scratch?
i really need this :D
BasherRehsab
2 years ago
Andrew Krammer
im so thankful to you and your team working hard for our relief from messing with VFX world it would be more easier if you make an application which runs Element 3D on unsupported boards
Mansooryan
2 years ago
Nice script.. thanks Andrew
But I have one problem .. when I use it after using Malty simplecamerarig 2.05 ..and choose camera and link properties
"After effects warning:undo group mismatch,will attempt to fix"
"After effects can't continue: damaged item .. ( 26::132 )"
"Unable to execute script at line 105. After effects can't continue: dameged item"

I hope to find a solution for this .. thanks again
    Karl Dreyer
    2 years ago
    Mee too! Cant make use of your great script in combination with malty simple camera rig.

    Would be perfect to get a working combination like its established between simple camera rig and sure target.

    This would be really, really awsome !!!!
    2 years ago
    Mee too! Cant make use of this great script in combination with malty simple camera rig. Having the same problem with Mansooryan~
Will Dano
2 years ago
Let me know what you think of my new short skit!

https://www.youtube.com/watch?v=uoVZnrvEfac
JTownPotatoMan
2 years ago
Unfortunately this script is crashing on AE CC OSX... Can't wait for it to be fixed!! thanks!
Diopama
2 years ago
Thanks Andrew it's AWESOME u are simply the best !!
Ahmed Rashed
2 years ago
what's new in after effects cc 2014
    duh?
    2 years ago
    Have you heard of Google?
2 years ago
With the arriving of OCTANE on After Affets, i can imagine the improvement of your tools, especially Element3D ! !
Michał
2 years ago
what about vc reflect, vc displace, vc shadow, plugins ?? on 9:00 film
Brian
2 years ago
Please Andrew can show us how to create Light Flares coming out from F-35 passing by fastly. I mean anyone can make this thing but i am talking about stuff like star trek into darkness like wooooosshh and bam the magic and details.
Evren
2 years ago
I think i found a bug. If the camere connected a 3D null object, then 3d pre comp gives an error if you use it. I just tried it on element 3d. I don't know maybe only i getting that error. Thanks for the scpirt.
    dHoward
    2 years ago
    Same here.

    I created a new comp, made a new layer, added Element 3D to this layer, dropped a random 3D object, went back out and created a camera, made a null object layer, parented the camera to the null object, added the new 3D Pre-comp script to the element layer and got a fatal error.

    Did I do something wrong, or is this an error that needs a fix?

    Thanks!

    "D"
2 years ago
you are just awesome, you are very creative
2 years ago
Hey,

Can't you do this natively by just clicking the collapse transformation button on your precomp?

Very handy for adding effects to 3D pre's though.

Cheers!
    2 years ago
    Little sun shaped button next to the Shy Guy.
2 years ago
Thank you VC team and Andrew, this has been doing my head in for months, especially with camera mapping and integration of 3d with cam mapping, this is going to save me a lot of work. Thank you once again Richie
Cyclonefire
2 years ago
Keep yourself calm, forever with these great scripts by VC team & think of the future date when Element 3D studio(5.0.2) will release......& Vehicle model pack too.
Rodrigo
2 years ago
You are the best by far Andrew! I'm gonna make you a monument someday!
Christopher Scott Knell
2 years ago
Awesome.
And thanks for reminding me that I should call Mom.
He livingroom window is in that shot of NYC and the invisible headphones.
I'll be sure to say hi for you.
Mario
2 years ago
I used the script with a 3D Element layer and checked Camera and Link Properties. It gave me the next messages:

After Effect undo group mismatch, will attempt to fix

After Effect can't continue: damaged item (26 :: 132)

Unable to execute script at line 105. After Effect can't continue: damaged item

After that let me save and the software close.

Help me please :(
    2 years ago
    Hey! If you can duplicate the error, can you please contact us at support@videocopilot.net and we can take a closer look there. Thanks!
    Neo
    2 years ago
    same mistake too....
    after effect CC 2014
    koko999
    2 years ago
    same error here with OF track lights
    Christian Michael
    2 years ago
    I got the exact same error and checked on here before contacting VC. The project was using a E3D layer and a wall of lights like in the light array to create a back lit stage. I wanted the lights to flicker behind the instruments. Was there a resolution here or a updated script? feel free to contact me VC either here or at my email address on file. The error is identical to the above.
    Christian Michael
    2 years ago
    I have the EXACT same issue with the same error message. the project is a stage with instruments, and a wall of lights behind it. I want the lights to flicker behind the drums etc. What was the resolution here, or was there an update for the script? The Error is identical.
    Alexander
    2 years ago
    Same here - FUCK I WANT A SOLUTION! THIS IS THE ONE THING THAT CAN SAVE ME
Eric Lin
2 years ago
dude you don't know how much time this is going to save me!! Thank you so much!!!
Tony
2 years ago
Awesome... Thanks Andrew :)
PHILIPPE LEBRET
2 years ago
He's the king for now and forever
Cool plugin from Sir Andrew Kramer !!!!!
2 years ago
my god... MY GOD!!!
Andrew Kramer marry me!! Nah I'm just kidding. Well, not if you would like, agree to. Then I'd be serious.

Anyway, this is AMAZING!!
Luke
2 years ago
#MindBlown! This is awesome, life will be so much easier now, at least the After Effects part of life :) Way back in college I was using your tutorials to do amazing things with AE that the rest of my peers thought weren't possible.
Marko
2 years ago
Hey, I think someone followed your tutorial :)
http://www.razerzone.com/chroma
Beaver77
2 years ago
Thank you for building this script, massively useful. The time it takes to link properties by hand. I know in CC you can now copy with property links option but this is neat and tidy. Thanks to you and your team!
Michiel
2 years ago
The problem of not being able to precompose 3D-items and still being able to move the camera has been bothering me for such a long time now. Thanks to whichever member(s) of the VC team who wrote this thing. You guys are genuinely awesome!
2 years ago
Great script!
I like this.
2 years ago
Thanks We Really appreciate your Hard Work . Really these things are Helping us Day by Day ,And this time you again Rocked
2 years ago
Hey Andrew,

Thanks for putting this together (and for giving it to us for FREE)! I few days too late for me to use this on my last short, "Amazon Dröne", but it will definitely come in handy in the future!

Thanks again!
Chris
2 years ago
Hi Andrew,

you could place this also on the VC Website under Free Presets.

Thanks. Sure I'm going to use this!
2 years ago
Aweeeesome.
I was waiting this for so long... thanks !
terenom visual effects studio
2 years ago
thank you Andrew Kramer i love this it is going to help us a lot in Uganda love this is all.
Ridwan007
2 years ago
I really appreciate your help and hard work...thanks.....this will save me a huge amount of time..
Jok3r
2 years ago
Very great job. thanks a alot AK
Brandon Liebenberg
2 years ago
Thanks a lot. You have made my life so much easier and less hassle free. You guys ROCK.
2 years ago
Weriy good job Andrew. I wish you bulid new 3d cosmic object colection !
    2 years ago
    I am sory! I wrote you with errors last time. Now I want if you make 3d cosmic object coletion like star trek Into darkkness title design ,I will be glad!
    2 years ago
    I am sory! I wrote you with errors last time. Now I want if you make 3d cosmic object coletion like star trek Into darkkness title design ,I will be glad!
Eric
2 years ago
Already used it for a solution.
I was using a 2D solid in 3D space to 'fake' a shadow with Element, but with Depth of Field on, the solid would disappear. 3D Precompose, and disabled DoF on the precomp...and Ta-Da! Fixed.
Great Script!
    2 years ago
    Hey Eric, noticed your comment and wanted to share something that worked for me. If your camera's DOF settings are quite high, 2D layers (in 3d space) might disappear. Decrease those settings until the layer comes back. If you need to then increase the DOF on the E3D object to make it match, go under the E3D Depth of Field settings and increase the DOF Radius Multiplier. This might be more helpful should you have multiple 2D layers.
martin (^_^)
2 years ago
Man, oh man, oh man!!!!
Only from the mind of Andrew and video copilot .

THANKS !! (^_^)
Lj
2 years ago
Thank you :) This is what I was looking for
Viki
2 years ago
Thanks buddy! you are the best!!
Bader Ahmed
2 years ago
Great work.. Great script... Is it possible to make it Dockable for easy access as a window within As.
Janus J
2 years ago
Great! Is there a keybind/shortcut, that would be really helpfull! Thanks for the script!
Mehmet
2 years ago
As always thanks very much for this free script
illd
2 years ago
Great 10 minutes - Thanks VCP!
jtown
2 years ago
This is awesome! I'm working on a project right now using E3D, OF, and 3D layers with animated cameras. I've been doing it manually also by linking the cameras to get everything all gravy. This will save tons of time! Thanks so much!!!
phoenixfilms
2 years ago
Hello Andrew,

it would be very cool if you can make some other "Flight School-Tutorials" like the scene in the Video.
Or a lesson how to make a own Script. That would be very nice!
Alex Mercer
2 years ago
what an amazing script , i been thinking of something like that while i was in the middle of a project last week and you just came up with it , thank god to have you andrew !
2 years ago
incredible! simple and useful at the same time! thank you!
Luciano Daluz
2 years ago
As always. Thanks! Any chance we heard some update about ELEMENT 2?
2 years ago
You Genius Cool I liked the effect of the sun in general everything's cool you're a real Hollywood Editor.....GOOD!
2 years ago
Really useful plug-in Andrew! I'm sure i'll use it soon.
2 years ago
Andrew "God" Kramer!

Thank you again!
    2 years ago
    Thank you!!! Now i can make a invisible ship effect
    kayongo
    2 years ago
    He is not(Andrew Kramer)God, he is human being like you,he is just genius.
    paiwand
    2 years ago
    your crazy man , this is human he isnt god ,,, F@$k you
Andrew Irish
2 years ago
Thanks you so much for this! I can't tell you how much time this will save me. :)
Rogue Robot
2 years ago
This looks fantastic - can't wait to put it to use.
Thanks!