Dutchman
05-29-2005, 04:11 PM
I wondered this also some while ago, and didn't solve it till now, but I have opened a thread about something-like-your-problem, then-a-days:
CLICK (http://www.cgtalk.com/showthread.php?t=206257) :)
Maybe you have some help from it... For example in DF this is reaaaally simple (with a so called 'modifier'), I think it's also quite simple to solve within Combusion, but I don't know so much of that app :sad: ;)
By the way: if really nóthing works, you can also let a cheap rotoscoper ( ;) ) move & animate the vertexes along the null-object (frame by frame :bounce: )
Let us know íf and hów you solved! ;) ,
Gijs
[EDIT: to help you I pasted the stuff, so that you won't have to register ;) :) :]
----------------------------------------
Assign keyframes to individual corners in paths
Norberto (http://www.adobeforums.com/cgi-bin/webx?224@845.xdJfeFnwqi3.2@ee6e78f@.3bb778e4) - 11:55am Dec 27, 2004 Pacific
Hi,
I need to animate a path according to the captured data with Motion Tracker. I need to assign each tracker point to a specific corner in a path, but I can't find a way to do it.
Is it possible to do?
Best regards,
Norberto Henriques
| Back to Topic List (http://www.adobeforums.com/cgi-bin/webx?14@845.xdJfeFnwqi3.2@.ee6b300) | Bookmark (http://www.adobeforums.com/cgi-bin/webx?addBookmark@845.xdJfeFnwqi3.2@.3bb778e4) | Subscribe (http://www.adobeforums.com/cgi-bin/webx?29@845.xdJfeFnwqi3.2@.3bb778e4)
To start a NEW discussion click on the Back to Topic List link and select Add Topic.
If you are in an archive forum please go up to the main topic list (http://www.adobeforums.com/cgi-bin/webx?14@845.xdJfeFnwqi3.2@.ee6b300) (archives are read only). -------------------------------------------
Dan Ebberts (http://www.adobeforums.com/cgi-bin/webx?224@845.xdJfeFnwqi3.2@ee6b879@.3bb778e4/8) - 7:24am Dec 30, 04 PST (#9 (http://www.adobeforums.com/cgi-bin/webx?14@845.xdJfeFnwqi3.2@.3bb778e4/8) of 10) Edited: 30-Dec-2004 at 06:29am
OK - assuming you have AE 6.5, here's an example of a script that attaches vertex 0 of a mask to a motion tracker point. The script assumes that the target layer is selected, that the tracker has already been applied, and that the mask is on the layer as the tracker data. Your application will undoubtedly be somewhat different, but this is just an example of how to access the tracker and vertex data. (I hope this works - I hate pasting code into this forum because it usually gets mangled, but here goes):
{
app.beginUndoGroup("attach mask to tracker");
var myVertexIndex = 0;
var myComp = app.project.activeItem;
var myLayer = myComp.selectedLayers[0];
var myMotionTrackers = myLayer.property("Motion Trackers");
var myMotionTracker = myMotionTrackers.property("ADBE MTracker");
var myTrackPoint = myMotionTracker.property("ADBE MTracker Pt");
var myAttachPoint = myTrackPoint.property("ADBE MTracker Pt Attach Pt");
var myMask = myLayer.property("ADBE Mask Parade").property(1);
var myProperty = myMask.property("ADBE Mask Shape");
var myIn = myLayer.inPoint;
var myOut = myLayer.outPoint;
var f = Math.round(myIn/myComp.frameDuration); // frame counter
var myShape,myPoint,p,t;
while (f <= Math.round(myOut/myComp.frameDuration)){ t = f*myComp.frameDuration; p = myAttachPoint.valueAtTime(t,true); myShape = myProperty.valueAtTime(t,true); v = myShape.vertices; v[myVertexIndex] = p; myShape.vertices = v; myProperty.setValueAtTime(t,myShape); f++; } app.endUndoGroup(); }
Dan
[edit] It looks like the "while" loop got all scrunched together. Hopefully you can pick out the individual statements. If you want to contact me through my site (http://www.motionscript.com) I'll send you the script.
Dan
Remi, thank you for the detail on the pages, I should have looked harder and found that in the first place.
Dan, as always you were very helpful. I'll try that example as soon as I can. Thank you very much.
CGTalk Moderation
05-29-2005, 04:11 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.