Forum Replies Created

  • Anil Kumar

    September 18, 2017 at 10:20 am in reply to: 3D point follows 2D point regardless of z-position

    https://forums.creativecow.net/thread/227/8509

    look this post or use this script

    L = thisComp.layer("Light 1");
    L.toComp([0,0,0]);

  • Hi kalle its as easy as you say.

    i did it with tracking software but i need that footage data in

    transformation x,y,z in value
    scale x,y in %
    rotate x,y,x in radian

    i use that data and convert it according in my software.
    that software support only above value in any 3d layer not any cornerpin.

    so i convert my cornerpin data to 3d null data or 3d transformation data so i use that in my software to match same screenspace.

    thanks

  • Anil Kumar

    May 11, 2016 at 5:54 am in reply to: Turning Corner Pin into 3d coordinates

    Hi Nicolas

    did find anyway for that ( corner pin to 3d null or 3d cordinate)

    cornerpin to null plug-ins work with only 2d null not to 3d. by using we got only 2d coordinate of cornerpin not exact 3d data.

    i trying on the Internet and i found here that u also need that method since 4 year and maybe u succeeded so if u have any idea to how to convert it.

    i found some script which done that work but not accurate but move and scale 100% matched.

    so please help me out i have same problem .

    thanks

    **************************************************
    Hey Guys,

    didn't see this thread originally.
    May I propose a different solution, one that does offer Zoom, Position and Rotation Motion blur:

    I start out with a Corner Pinned layer, let's call it 'trackedPin'. I'm assuming it's position, rotation, scale are not animated, only the corner pin points are.

    Duplicate that layer, disable the corner-pin effect, and rename it ("motion blur pin"). Enable Motion Blur. Hide the original.
    Now add these expressions:

    Position:

    l=thisComp.layer("trackedPin");

    ul=l.effect("Corner Pin")(1);
    ur=l.effect("Corner Pin")(2);
    ll=l.effect("Corner Pin")(3);
    lr=l.effect("Corner Pin")(4);

    center=(ul+ur+ll+lr)/4;

    l.toComp(center);

    Scale:

    l=thisComp.layer("trackedPin");

    ul=l.effect("Corner Pin")(1);
    ur=l.effect("Corner Pin")(2);
    ll=l.effect("Corner Pin")(3);
    lr=l.effect("Corner Pin")(4);

    w=Math.max(length(ul,ur),length(ll,lr));
    h=Math.max(length(ul,ll),length(ur,lr));

    [w/width,h/height]*100

    Rotation:

    l=thisComp.layer("trackedPin");

    ul=l.effect("Corner Pin")(1);
    ur=l.effect("Corner Pin")(2);
    ll=l.effect("Corner Pin")(3);
    lr=l.effect("Corner Pin")(4);

    l=(ul+ll)/2;
    r=(ur+lr)/2;

    x=r[0]-l[0];
    y=r[1]-l[1];

    ang=radiansToDegrees(Math.atan2(y,x));

    by averaging out the cornerpins, and doing some extra math, we get position, rotation and scale that roughly tracks the layer. So we get motion blur for free.
    Now we need the corner-pin effect again, but only to do some minor adjustment of the corners. In other words, add back the perspective
    Add these expressions to the corner-pins of the motion blurred layer:

    Upper Left:

    l=thisComp.layer("trackedPin");
    p=l.effect("Corner Pin")(1);
    fromComp(l.toComp(p));

    Repeat for each Pin, just change the numbers on the second line to (2), (3), (4)

    That's it. The expressions for position, rotation, scale, could be a bit better, because now, the corner pins sometimes still have to scale up the layer. But I'll leave that for another day.

    offset = effect("Slider Control")("Slider");
    cam = thisComp.activeCamera;
    p = toWorld(anchorPoint);
    v = normalize(cam.toWorld([0,0,0]) - p); // unit vector from layer to cam
    value + fromWorldVec(offset*v);

    ************************************************************

  • Hi

    any progress according to above question or any idea hows that possible or its impossible?
    i have same situation i have a scene with plane corner pin which is tracked for mobile screen and i need a 3d null with position, rotation and scale with same screenspace of cornerpin if i attach a solid plane at 3d null.

    i search it on internet for along time but can’t find the solution why?
    is there nothing solution of this method?
    is this impossible in programming?
    or no one intrested in this type of question?
    please help or guide me if any idea…

    thanks…

  • Anil Kumar

    May 2, 2016 at 12:39 pm in reply to: 2D effect for a 3D object with 3D camera

    Hi

    find 3DM_3d_2_2d.jsx for that or use “PB 3D to 2D Positions.jsx”
    you can attach any 2d pbject on 3d.

    thanks

  • Anil Kumar

    May 2, 2016 at 10:08 am in reply to: 3D corner pin

    Hi

    i think Dan create a method for 3d cornerpin.
    i need a way to convert 4point corner pin data to 3d null.

    result same as cameraspace but using with 3d null no cornerpin.

    i create my project with corner track and need to export it to my editing software but thats only support translate xyz and scale xyz and rotation xyz but not cornerpin data so i want to convert corner pin data to null 3d and use its transformation data to own use but no changes in cameraspace.

    is this possible in after effects.
    thanks in advance

  • hi Darby Edelen

    i see your nice post and download your c4d but i am maya user
    if you have same solution for maya please give some info or guide me please

    i really need this way

    my problem is – i have a maya scene with camera animation with a car animation in scene i want all the animation as it is in camera view but no animation in my camera.

    so please if have any idea to solve this i really thanks for…

    Regards

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy