hi, I've been trying to calculate the distance between an unparented point and a point in a chain of scaled parented nulls. I have toWorld'ed my parented point and everything is fine when there are no scale factors. When I change from 100% scales the distance is wrong.
So I tried iterating up through the layers until I get to the parent with the idea that at each layer I could calculate the resulting scale adjustment and then I would apply it to my distance vector. But that didn't work out at all.
The main issue is the scale property. GimmePropPath gives the path for the property as .transform.scale as one would expect but I can't find such a property shown in the data browser thingy and the code throws 'undefined is not an object' or something like that. The layer does have .scale but that property does not appear to be an array and attempts to access members  and  fail.
Anyone point me in the right direction. I'm going about this the wrong way? Can I use toWorld somehow better?