Alberto Brancolini
Forum Replies Created
-
Alberto Brancolini
August 2, 2017 at 12:18 pm in reply to: Convert corner pin to 3D rotation of a 3D layer?I stumbled into a situation that forced me to convert corner pin data to a 3D layer rotation, so I update this old thread.
Nobody is gonna get even a Razzie Award for this, but it helped me drawing a little more blood from stones (as usual).UpLeft = thisComp.layer(“Corner Pin Data Bank”).effect(“Corner Pin”)(“Upper Left”);
UpRight = thisComp.layer(“Corner Pin Data Bank”).effect(“Corner Pin”)(“Upper Right”);
DnLeft = thisComp.layer(“Corner Pin Data Bank”).effect(“Corner Pin”)(“Lower Left”);
DnRight = thisComp.layer(“Corner Pin Data Bank”).effect(“Corner Pin”)(“Lower Right”);
deltaA = sub(UpLeft,UpRight);
a = Math.atan(deltaA[1],deltaA[0]);
aDeg = radiansToDegrees(a);
deltaB = sub(DnLeft,DnRight);
b = Math.atan(deltaB[1],deltaB[0]);
bDeg = radiansToDegrees(b);
90+(aDeg+bDeg)/2I applied this bunch to the Z rotation (after orienting the layer). I did the same with the X rotation (but with accordingly shifted corner). By averaging the angles from the two lines, I tried to achieve a more consistent result.
I hope it may help. Should it not, take your boss by the horns and get him (or her) learning to place markers as they ought to. ???? -
Alberto Brancolini
May 26, 2017 at 8:07 am in reply to: EXR files interpretation mismatch between AE and NukeHallo Walter, thanks for replying.
Video was shot on an RED Mystery X, then converted to DPX (at least, this is what I’ve been told, coz I didn’t attend the shooting). In AE, we work at 16bit (in Nuke, of course, that doesn’t really matter), and we tested exporting both from a 16 and a 32 bit projects (although I don’t really know what is worth), to no avail.
But the files look correct, if reimported in AE.I played all my cards (which I admit they are not plenty, by the way).
-
Alberto Brancolini
May 19, 2017 at 9:42 am in reply to: On the mystic faculty of reading an external plain text file.Thanks you, Dan.
That worked a beauty!
Now these Nuke-dunk highbrows here at my office have their noses a little less in the air. ????May somebody find it useful, here is the full working code, applied to position:
myFile = “absolute path to the file“;
data = $.evalFile(myFile);
a = data.match(/[(backslash… I can’t have it displayed) d.]+/g); this RegEx reads every digit included into the string, it takes on each space and return as a separator, and creates an array
w = timeToFrames(time)*2; or 3, if Z data are included
x = a[w];
y = thisComp.height-a[w+1]; because Y coordinates in Nuke are flipped
z = a[w+2]; only if Z data are included
[x,y,z]; -
Alberto Brancolini
May 19, 2017 at 8:10 am in reply to: On the mystic faculty of reading an external plain text file.Thank you Dan.
Now that I’m at the office, I tried as you suggested, at once. The situation changed.
This is the code I gave to the source text property of a text layer named Read:try {
myFile = “C:\ALBERTO_LOCAL_SSD\tracker.txt”;
$.evalFile(myFile);
eval(thisComp.layer(“Read”).text.sourceText.value);
} catch(err) {
err;
}It tells me that the file does not exist.
As I saw in a tutorial by Harry Frank, Windows paths are not friendly as Mac’s, hence I also tried to put \\ instead of \, as suggested. It tells me that expects a semicolon somewhere. I don’t know where… and I think I’m just digging holes in the sand.Just for completeness, this is how tracker.txt looks like (straight by Nuke):
-
Sorry,
here are the links:
https://forums.creativecow.net/thread/306/16043
and
https://forums.creativecow.net/thread/306/16046 -
Hello.
I read the thread and decided to go through a quick experiment.
Back in september, an European project took me to Bosnia to give account of the things going on.
This shot was grasped casually and had never been meant to go under post.
However, I’ve found interesting to manage a sky replacement, just to see what is possible to achieve in extreme situations.I followed Spencer’s method and I quickly came out with this.
I just like to know what you think of it, and what’s your advice for improving.
Consider I know there’s an unpleasant trasparency in the front of the girl on the right, and that tracking (with Mocha) is far from perfect.Panasonic SDT-750 in Automatic Mode.
HA preset (1920*1080, 17Mbps).
Converted in ProRes to work with it.I also post the original.
Regards,
Alberto. -
Thank you, Andrew, too.
I’ve always been told to KISS, but sometimes I wanted to be sure it’s not a kind of justification for not trying.
-
Thank you. I’ll go for a 25p device.
-
Thank you, Erik.
I had to trash the preferences file, since the lack of the maximize button was part of the problem. Now AE works.
Regards,
Alberto. -
Alberto Brancolini
December 1, 2011 at 6:27 pm in reply to: Value out of a “while loop” decreases when it should not.Thank you very much.
