Forum Replies Created
-
Nick Mara
September 30, 2020 at 7:53 am in reply to: Disable or Enable an Expression with a Checkbox ControlHey Brendon,
Thank you so much for providing me this expression.
It works perfectly

-
Nick Mara
September 29, 2020 at 8:45 pm in reply to: Self – Resize a Bezier Path Shape Layer to Comp size and moreHey Andrei,
I have another question.
Is there a way to keep the Anchor Point of the Shape Layer always centered into the composition?
I’ve tried to add this expression to the anchor point but it’s not working properly:
R = sourceRectAtTime();
[R.left + R.width/2,R.top + R.height/2]
I think this is not the right solution.
Is there a way to add something more on the Path expression you provided me to keep the shape always centered and locked?
This would avoid anyone to commit a mistake and carelessly move the Shape Layer.
Any idea?
Thanks again
-
Nick Mara
September 29, 2020 at 3:22 pm in reply to: Self – Resize a Bezier Path Shape Layer to Comp size and more

I AM ASTONISHED !!!
It’s all working perfectly now but I have another question…How can I repay you?
Magic !!!

Thank you so much

-
Nick Mara
September 29, 2020 at 2:50 pm in reply to: Self – Resize a Bezier Path Shape Layer to Comp size and moreTHIS IS AWESOME !!!
Now everything is working perfectly =)
I’m so sorry I’ve described the order of the corners wrongfully in the post.
All the issues are now solved and so I have my last question:
Is it possible to add a Checkbox Control to the expression able to invert the Path direction?
I mean:
Checkbox ON = The Path’s direction goes anticlockwise
Checkbox OFF = The Path’s direction goes clockwise
I can’t thank you enough for helping me !!!
-
Nick Mara
September 29, 2020 at 1:43 pm in reply to: I need help with this Expression: linear(time, 0, thisComp.duration, 0, 100);Hey Andrei,
Thanks for your response, sorry for splitting the discussion in two parts, my fault.
Let’s try to stay on this one:
Thanks a bunch
Self – Resize a Bezier Path Shape Layer to Comp size and more
-
Nick Mara
September 29, 2020 at 1:37 pm in reply to: Self – Resize a Bezier Path Shape Layer to Comp size and moreSUPER !!!
This expression works like a charm !!!
I’ve seen that you also answered me on my other discussion:
So what I want to tell you is that the expressions you provided me are working well with some adjustments.
I created a video to show you from start to end the entire process, pointing out some “bugs” I found:
https://www.youtube.com/watch?v=6Cw9oE0tAiQ
Tell me If I’m doing something wrong.
Anyway the problem now is that there are two functions working together:
1 The”Start_Point” Slider Control which controls the starting point of the Path.
2 – The “End_Point” SLider Control which controls the ending point of the Path.
These are the changes I’ve made to the expression:
Path expression:
1 – cOrder=[1,2,3,0]
Now it’s rotating anticlockwise one step to another, that’s perfect.
End expression:
1 – percentL = 50.5 * L / (L + l);
percentl = 50.5 * l / (L + l);
If I leave the value of 50, as you suggest (which should work perfectly), at the end of the path a little gap remains uncovered. So I’ve tried to add an extra 0.5 % and it seems to work.
2 – shortPoints = [0, 4];
With the range [1,4] something weird happened as you can see from the video but with [0,4] everything it’s good.
That said I need to point out another issue.
There is a sort of “bug” which is not a real “bug” but it’s annoying:
The whole process works well when you first choose the starting point and then you change the end point.
But if you first choose the End Point and then the Starting Point the stroke shifts.
It’s pretty tricky to explain but you can see what I mean at the end of the video.
Is there a solution for that?
Thanks again
I need help with this Expression: linear(time, 0, thisComp.duration, 0, 100);
-
Nick Mara
September 29, 2020 at 10:57 am in reply to: Self – Resize a Bezier Path Shape Layer to Comp size and moreAndrei, thanks again !!
I understood why the expression was not working for me.
My project setting for the Expressions was set to Legacy ExtendScript not to JavaScript.
Is there a way to turn this expression working in Legacy ExtendScript?
In Legacy ExtendScript the expression it’s working within the range of 1-3.
I also had to reorder the numbers of the cOrder to make it change the starting point clockwise like:
cOrder= [1,2,3,0];
If I input the number 0 or 4, an error occur.
Is there a way to make like a sort of loop?
I mean, is it possible to increase the number of the slider control and make the first chosen point always changing per each value in round?
For Example:
0 = First point
1 = Second point
2 = Third point
3 = Fourth point
4 = First point
5 = Second point
6 = Third point
7 = Fourth point
8 = ……………….. and so on
Thankssssss
-
Nick Mara
September 29, 2020 at 9:41 am in reply to: I need help with this Expression: linear(time, 0, thisComp.duration, 0, 100);Hi Stephen,
Thanks for your kind help !!!
I’ve tried one of the expression you provided me and I think I’m doing something wrong.
Here is a short video to show you what I did:
https://www.youtube.com/watch?v=mBq1Ce8946M
Could you please tell me what is wrong?
I need to tell you another thing:
This is part of a project where for necessity, the Shape Layer Path it’s converted to a Bezier Path which auto-resize itself due to the composition size via this expression:
cW = thisComp.width;
cH = thisComp.height;
corners = [[-cW/2,-cH/2], [-cW/2,cH/2],[cW/2,cH/2],[cW/2,-cH/2]];
startCorner = 2; // Link to Slider Control
p1 = corners.splice(0,startCorner-1);
corners = corners.concat(p1);
createPath(corners)You can also change the start point of the path using a slider control.
I’m telling you this because, as you know for sure, when you convert the Shape Layer Path to a Bezier Path, you don’t have direct access to the Width and Height properties anymore.
Is there another expression or a workaround to solve this problem always keeping in mind that I need to use also this expression on the “End” property of the Trim Path:
linear(time, 0, thisComp.duration, 0, 100);
THANKS IN ADVANCE !!!
Some contents or functionalities here are not available due to your cookie preferences!This happens because the functionality/content marked as “Google Youtube” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.
-
Nick Mara
September 28, 2020 at 6:27 pm in reply to: Self – Resize a Bezier Path Shape Layer to Comp size and more<div>
That’s so true, I used to go with the double-click but then something happened in my life and now I’m going this way 
Thanks again Andrei !!
</div>
-
Nick Mara
September 28, 2020 at 6:12 pm in reply to: Self – Resize a Bezier Path Shape Layer to Comp size and moreAndrei Popa WOW!!!
Thank you so much for your help.
The expression you provided me works very nicely.
Now if I resize the composition, the Rectangle resizes itself and most important, the starting point of the path can be easily chosen via the slider control !
Amazing!!!
Can I ask you another question?
The slider control now works within the range which goes from 2 to 5.
Each number it’s equal to a corner point starting from number 2, which refers to the Bottom left corner.
If I input a parameter of 0 or 1 an error occur.
Is there a way to shift that range of a -1 value and lock the slider range ?
I mean:
Number 1 = Bottom right corner
Number 2 = Bottom left corner
Number 3 = Top right corner
Number 4 = Top left corner
I hope you could assist me again.
Thanks in advance for you time and for you priceless help =)