-
Is there a way to simplify this line of code
Hi all I have been playing around with some ideas and was looking for some advice on simplifying this piece of code (well expression)
this is what I started of with
a=transform.position,
b=thisComp.layer("MainSquare").content("Rectangle 1").content("ResizingGroup").transform.scale,
c=(a*b)/100Which gave me this error
Bad method arguments: one argument to mul() must be a scalar
So I broke it down into this and it works.
a=transform.position,
b=thisComp.layer("MainSquare").content("Rectangle 1").content("ResizingGroup").transform.scale,
c=[a[0]*b[0],a[1]*b[1]]/100Is there a nicer way to accomplish the same thing without breaking it into each individual dimension.
Any other advice regarding math on vectors is also very welcomed.
Thanks in advance
Regards
Chris Forrester
demoreel http://www.chrisforrester.tv