Colin Braley
Forum Replies Created
-
Does this one do the trick?
//begin
p1 = thisComp.layer(“Camera”).position;
p2 = thisComp.layer(“HUD”).position;
distance = Math.round( length( p1 , p2 ) ) ;
distance
//end~Colin
-
Colin Braley
November 3, 2006 at 1:53 pm in reply to: Corner Pin type free distortion solution needed – any options/ideas pls?There are a lot f ways to do something like this. You could try using CC Power pin instead of the regular corner pin if you have it. Using CC Power Pin you can move the corner pinned layer around a bit and scale it but that not be enough control for what you are looking for. In that case, I recommend using expressions to link the each of the track points to each corner of the corner pin. Then add a point control to the layer named somehting like “offset 1.” Add this into the expression and then change the position of the offset 1 point control to adjust your corner point. Do this for each corner.
~Colin
By the way….the expression for the each of the corner points should look something like this:
thisComp.layer(“Motion Tracked Layer”).motionTracker(“Tracker 1”)(“Track Point 1”).attachPoint + effect(“Offset 1”)(“Point”)
-
Colin Braley
November 3, 2006 at 1:53 pm in reply to: Corner Pin type free distortion solution needed – any options/ideas pls?There are a lot f ways to do something like this. You could try using CC Power pin instead of the regular corner pin if you have it. Using CC Power Pin you can move the corner pinned layer around a bit and scale it but that not be enough control for what you are looking for. In that case, I recommend using expressions to link the each of the track points to each corner of the corner pin. Then add a point control to the layer named somehting like “offset 1.” Add this into the expression and then change the position of the offset 1 point control to adjust your corner point. Do this for each corner.
~Colin
By the way….the expression for the each of the corner points should look something like this:
thisComp.layer(“Motion Tracked Layer”).motionTracker(“Tracker 1”)(“Track Point 1”).attachPoint + effect(“Offset 1”)(“Point”)
-
Colin Braley
October 31, 2006 at 5:46 am in reply to: why does random(min,max) not work with time remapping?I suspect that this is your problem:
– The time remap parameter expects its number in terms of seconds not frames. So when you say random(1,16) it giving time remap a number between 1 second and 16 seconds. IF you wanted a value between one frame and 16 frames you could do it like this:temp = random(1,16);
timeToFrames( temp )or you could code it more succinctly:
timeToFrames( random( 1 , 16 ) )
Enjoy.
~Colin -
Most importantly, make sure your output module settings in AE are correct. Next to channels it should say RGB + ALPHA . Next to colors it should say Millions of Colors + . This plus sign means to include an alpha channel. Next you will need to choose if the alpha channel should be premultiplied or straight.
I don’t have enough information to tell you whether you want premultiplied or straight. What editing or compositing app will the client be using this quicktime in? Some programs (including Final Cut)prefer straight alpha channels, while others prefer premultiplied alpha channels. After Effects can render out either one. If your client is using After Effects, either straight or premultiplied should work because AE can almost always tell what type of alpha the clip has when you use the “guess” option.
~Colin -
To remove unselected compositions and unused footage items from selected compositions in the Project panel, choose File > Reduce Project. This command is available only when the Project panel is active, and removes both unused footage items and all other compositions that are not included within a selected composition as nested (subordinate) compositions.
If the selected composition includes items that are turned off (that is, the Video or Audio switch is deselected in the Timeline panel), the Reduce Project command does not remove those items.
Note: If an expression in a selected composition refers to an element in a nonsubordinate composition, Reduce Project removes the nonsubordinate composition and the applied expression. The message that appears after you choose Reduce Project reminds you of this possibility, so you can undo the command if needed. To avoid removing the expressions from a nonsubordinate composition, drag the nonsubordinate composition into the composition that refers to it. Then deselect the Audio and Video switches for the composition that you added. Thats compliments of AE help.Oh yeah and you can also use file > remove unused footage.
~Colin
-
To remove unselected compositions and unused footage items from selected compositions in the Project panel, choose File > Reduce Project. This command is available only when the Project panel is active, and removes both unused footage items and all other compositions that are not included within a selected composition as nested (subordinate) compositions.
If the selected composition includes items that are turned off (that is, the Video or Audio switch is deselected in the Timeline panel), the Reduce Project command does not remove those items.
Note: If an expression in a selected composition refers to an element in a nonsubordinate composition, Reduce Project removes the nonsubordinate composition and the applied expression. The message that appears after you choose Reduce Project reminds you of this possibility, so you can undo the command if needed. To avoid removing the expressions from a nonsubordinate composition, drag the nonsubordinate composition into the composition that refers to it. Then deselect the Audio and Video switches for the composition that you added. Thats compliments of AE help.Oh yeah and you can also use file > remove unused footage.
~Colin
-
This should do it for you:
xSnap = 100;
ySnap = 100;
[ Math.round(value[0]/xSnap) * xSnap , Math.round(value[1]/ySnap) * ySnap ]Just change xSnap and ySnap to whatever increments you want to snap to. However, note that sometimes if you have an object animated near the edge of the comp it might snap to a value out of the comp window. Have fun.
~Colin
-
This should do it for you:
xSnap = 100;
ySnap = 100;
[ Math.round(value[0]/xSnap) * xSnap , Math.round(value[1]/ySnap) * ySnap ]Just change xSnap and ySnap to whatever increments you want to snap to. However, note that sometimes if you have an object animated near the edge of the comp it might snap to a value out of the comp window. Have fun.
~Colin
-
…Allthough if i was doing this myself for a project I would use sliders as mentioned above….allthough if you don’t know what sliders are it would prbably be faster to just paste in the expression i wrote.