Activity › Forums › Adobe After Effects Expressions › Create Effect controller (position) to control 3D layer Position
-
Create Effect controller (position) to control 3D layer Position
Posted by Eden Exposito on November 28, 2012 at 5:25 pmHi!
I want create a layer effect to control 3d layer position like that https://d.pr/i/kxuK .I want maintain default layer position channel clean and add some expressions to this new position effect layer.
I had tried something like that “app.project.activeItem.layer(1).effect.addProperty(“ADBE Slider Control”);” this add a normal slider controller…..but i want 3D point controller and use it to control layer position
Somebody know?
Thanks
Dan Ebberts replied 13 years, 5 months ago 2 Members · 11 Replies -
11 Replies
-
Dan Ebberts
November 28, 2012 at 6:32 pmTry this:
app.project.activeItem.layer(1).effect.addProperty(“ADBE Point3D Control”);
or this:
app.project.activeItem.layer(1).effect.addProperty(“3D Point Control”);
Dan
-
Eden Exposito
November 28, 2012 at 6:40 pmWow Perfect Dan!
And for use those 3D point values to control position channel without add an expression in position channel? I want use this controller as position
Thanks!!
-
Dan Ebberts
November 28, 2012 at 6:43 pmI don’t think there’s any way to do that (except via an expression). Why don’t you want to use an expression?
Dan
-
Eden Exposito
November 28, 2012 at 6:51 pmI think that is more clean add custom expressions in custom channels instead default layer channels in this preset (by Videocopilot) Seems that they are doing that i attach a screenshot https://d.pr/i/2O0X
-
Dan Ebberts
November 28, 2012 at 7:03 pmIt looks like that’s just the Transform effect, which they have renamed to FX_Transform. If you were willing to create your own plug-in version of the Transform effect I think you could (as of CS5.5) add a 3D point control, but that would be a lot to bite off.
Dan
-
Eden Exposito
November 28, 2012 at 7:18 pmwooh!. Well I only want add Transform effect with name changed too 😛 maybe this it’s more simple that I thought to do. Do you know the script line to do it?
Thanks Dan for your rapid responses!!
-
Dan Ebberts
November 28, 2012 at 7:49 pmTry this:
var myEffect = app.project.activeItem.layer(1).effect.addProperty(“ADBE Geometry2”);
myEffect.name = “FX_Transform”;or this:
var myEffect = app.project.activeItem.layer(1).effect.addProperty(“Transform”);
myEffect.name = “FX_Transform”;Dan
-
Eden Exposito
November 28, 2012 at 8:09 pmWow! Perfect.
How you know the property names “ADBE Geometry2” … “transform”.. etc? Where I can consult it? Seems exists a list of those effects ready to use..
Thanks!!
-
Dan Ebberts
November 28, 2012 at 8:16 pmJust Google “After Effects match names”. That will lead you to a couple of lists. I always just use Jeff Almasol’s wonderful rd_GimmePropPath script available at his site (redefinery.com_)
Dan
-
Eden Exposito
November 28, 2012 at 9:53 pmGreat utility!!
As I expected
var myEffect = app.project.activeItem.layer(1).effect.addProperty(“Transform”);
myEffect.name = “Transform”;Give me a 2D dimension capabilities only (Adobe dont think about 3D layers?)
With GimmePropPath i can see that position is: layer(1).property(“Transform”).property(“Position”) but
var myEffect = app.project.activeItem.layer(1).effect.addProperty(“Transform”).property(“Position”);
myEffect.name = “Transform”;Dont work, maybe a property can not work like an effect?…or script line is wrong
other questionis if I can add specific parameter of Transform effect instead invoke all effect?
Thanks!
Reply to this Discussion! Login or Sign Up