Skip to main content
mart-martinlofqvist
Known Participant
June 11, 2021
Question

Pick whipping size values gives me the wrong result

  • June 11, 2021
  • 3 replies
  • 726 views

Hi, 

just stumbled upon a very strange bug. I'm pick whipping size values from a shape layer rectangle onto its Position value and it's returning the wrong value (I'm getting 1080 instead of the size of 200). When I rendered the value onto an empty text layer it does give me the correct result. Although if I change the name of the shape layer group and object I get the correct value - until I try to do any kind of calculation on it. 

 

Pretty severe bug. I'm attaching a project file. It was created on windows but I get the same result on mac. 

 

(Or am I just being stupid here?)

This topic has been closed for replies.

3 replies

mart-martinlofqvist
Known Participant
June 17, 2021

Anyone know what is happening here?

Roland Kahlenberg
Legend
June 17, 2021

There seems to be a misalignment with what you intend to do with the Expression you've used. Hence, it's really impossible to ascertain what you want and where the issue is. For example, you've declared the length Expression Method but you've not used it anywhere else in the Expression for Content>Size.

I suggest you start off by explaining what it is that you intend to achieve. HTH

Very Advanced After Effects Training | Adaptive & Responsive Toolkits | Intelligent Design Assets (IDAs) | MoGraph Design System DEV
mart-martinlofqvist
Known Participant
June 11, 2021

My theory right now is that the length() function needs to go a frame before it has calculated anything, because on frame 2 I get the expected result. what I do not understand is how an variable that I'm not using for any output can affect this? 

Mylenium
Legend
June 11, 2021

Impossible to know. Screenshots would be much more useful than trying to attach a project (which the forum software won't let you do) and most people won't download, anyway. However, from your description I feel you are forgetting that shape layers calculate their coordinates from the center and that you also may need to account for the group transform, not just the absolute path size. I'm therefore pretty sure that there isn't realyl an issue or bug. Either way, you need to clarify.

 

Mylenium

mart-martinlofqvist
Known Participant
June 11, 2021

Attaching a screen recording of what happens, hope it does explain the problem. 

 

 

/M

Joost van der Hoeven
Community Expert
Community Expert
June 17, 2021

Your shape is called Contents but you are calling content. Also if you want the x-value it should be size[0], you are now calling for the y-value, size[1].