Variantti
Community Beginner
Variantti
Community Beginner
Activity
‎Jan 27, 2025
04:12 AM
Just a quick question about PDF articles. Am I missing something obvious here but when I export (interactive PDF) a document with articles from Indesign and then view it in Acrobat the Articles pane is empty? Are those supposed to show up in Acrobat? I mean these PDF articles: https://helpx.adobe.com/acrobat/using/pdf-articles.html Many thanks!
... View more
‎May 03, 2024
11:43 AM
Here is another thread with several users having the same issue: https://community.adobe.com/t5/after-effects-discussions/vanishing-point-works-wrongly-in-after-effects/m-p/14458765#M244841
... View more
‎May 03, 2024
11:12 AM
I just tried it again and it is still a mess when I import the file to AE. 😕 Currently running: OSX 14.3 PS25.7 AE24.3
... View more
‎Mar 20, 2024
05:22 AM
I think I figured it out. The code was waaay off. Probably should implement Mylenium's suggestion but here's the code: For the Start value: var segmentId = thisProperty.propertyGroup(3).propertyIndex; var numberOfSegments = thisLayer("Contents").numProperties; var startPercentage = 0; // sum the lengths below this segment if( numberOfSegments > 1 ){ for(var i = segmentId + 1; i <= numberOfSegments; i++) { startPercentage += thisLayer("Contents")(i).content("Trim Paths 1").end - thisLayer("Contents")(i).content("Trim Paths 1").start; } } startPercentage; For the End value: var segmentId = thisProperty.propertyGroup(3).propertyIndex; var numberOfSegments = thisLayer("Contents").numProperties; var previousSegmentEnd = 0; if( segmentId + 1 <= numberOfSegments) { previousSegmentEnd = thisLayer("Contents")(segmentId + 1).content("Trim Paths 1").end; } previousSegmentEnd + 10;
... View more
‎Mar 20, 2024
02:52 AM
1 Upvote
On a shape layer I have a group that contains a stroked path with a trim path operator. I'd like to fill the whole path with stroke segments of different color and length by duplicating the group. The color part is working but I am getting confused how to calculate the starting and end points for each segment. Offset will be used to drive the animation. For the Start value this works fine (it sums the values of End): var segmentId = thisProperty.propertyGroup(3).propertyIndex; var numberOfSegments = thisLayer("Contents").numProperties; var startPercentage = 0; for(var i = numberOfSegments; i > segmentId; i--) { startPercentage += thisLayer("Contents")(segmentId).content("Trim Paths 1").end; } startPercentage; But how do I calculate the end value for each. This is my attempt but it is not working. The logic is to find out the end value of the previous segment and add the new length to it. At the moment it just shoots both Start and End to 100%. There is some kind of unwated reference loop? var segmentId = thisProperty.propertyGroup(3).propertyIndex; var numberOfSegments = thisLayer("Contents").numProperties; var previousSegmentEnd = numberOfSegments < 2 ? 0 : thisLayer("Contents")(segmentId + 1).content("Trim Paths 1").end; var segmentLengths = [6, 8, 10, 13, 16, 21]; seedRandom(segmentId, timeless=true); var currentLength = segmentLengths[Math.floor(random(segmentLengths.length))]; previousSegmentEnd + currentLength; Probably simple but I just seem to be stuck with this. Any help is much appreciated.
... View more
‎Nov 02, 2023
10:24 AM
2 Upvotes
I am trying to use the vanishing point tool in Photoshop to create a simple 3d-space for a slight camera animation in After Effects, but the feature seems to be broken. It all works fine in PS but when I import the .vpe into After Effects the mapping is all over the place. I have attached screenshots. It doesn't make any difference if I create the planes in PS in different order. PS feature "return 3d layer to PS" creates a perfectly fine result. Any ideas what might be the issue and how to fix it? I'm running the latest version of PS and AE on OSX 13.5.2
... View more
‎Nov 19, 2022
01:39 AM
I have bunch of periods on a text layer set to follow a path to be able to animate the path and also use range selectors to animate properties of the characters. I'm using the minmax effect to generate pillshapes from the dots. Is there anyway to link the radius of the minmax effect to the alpha (or size) of a dot? So smaller, or more transparent, the dot the shorter the minmax radius. Hope the image helps to explain the idea.
... View more
‎Sep 19, 2022
03:08 AM
Ok, that makes sense. The focus must shift somewhere else and it causes the crash. I can understand why you'd avoid using it. Thanks again!
... View more
‎Sep 18, 2022
04:11 AM
Actually I ran into a new problem. Is there any limitations where in code one can call the executeCommand? When I moved the copying into a dedicated function the executeCommand call began to crash. Is the executeCommand blocking code? When I had the paste command in other section in code the effects were pasted somehow also on shapelayers that did not even exist at that point in code. function copyLayerEffects(sourceLayer, targetLayer) {
// is there anything to copy
if( sourceLayer.property("ADBE Effect Parade").numProperties !== 0 ) {
// select the effects
for(var i = 1; i <= sourceLayer.property("ADBE Effect Parade").numProperties; i++){
sourceLayer.property("ADBE Effect Parade").property(i).selected = true;
}
// copy command
alert(app); // is not undefined
alert(app.findMenuCommandId("Copy with Property Links")); // alerts code 10310
app.executeCommand(app.findMenuCommandId("Copy with Property Links")); // crashes
// remove effects from the new layer because they get duplicated when the source is cloned
while(targetLayer.property("ADBE Effect Parade").numProperties !== 0){
targetLayer.property("ADBE Effect Parade").property(1).remove();
}
// paste command
app.executeCommand(app.findMenuCommandId("Paste"));
}
}
... View more
‎Sep 17, 2022
09:30 PM
That works pefectly. Cheers!
... View more
‎Sep 17, 2022
10:49 AM
I'm working on a script that duplicates a layer many times and adds a "set matte effect" to the new layers. I'm also copying all the effects from the source layer and pasting them to the new layers using the executeCommand method. I would like to have the set matte to be the first effect so that dropshadows etc would work correctly. Even when I add the set matte in code first and then do the paste executeCommand, the set matte effect ends up being the last effect. Is there a fix for this? Or is there a way to reorder the effects in the Effect Parade? PropertyIndex doesn't help as it is read only. Thanks!
... View more
‎Sep 05, 2022
01:15 PM
Thanks for the quick reply. I was afraid that it would be impossible to do. I'll have to figure it out some other way, or just add a simple button to update the dropdown. However, I was reading the documentation and about registering new event handlers for the window object and came up with this: var newWindow = new Window("palette", "", undefined); newWindow.addEventListener("mouseover", myFunction ); function myFunction() { alert("mouseover the window"); updateDropdown(); } That event fires every time the mouse enters the window. If the mouse has been on the AE menu pressing Undo then it must have left the script window and re-enter to interact with the script. No idea how terrible idea this is...
... View more
‎Sep 04, 2022
10:57 PM
I have a script UI with a dropdow menu filled with layer names. My script generates new layers and those are added to the dropdown menu. But if the user perform an undo(menu command or keyboard), the layers get removed from the composition, but remain in the dropdown. I would need an event handler for the undo to call a function that updates the dropdown. Any ideas? There are ways to listen to the keyboard events but how about the menu command? Cheers.
... View more