-
toComp… I just don’t get it
Working on a project and once again needed to get the coordinates of a specific edge. After a lot of trial and error, experimentation, and copying code from much smarter people’s examples online I finally got things to work with toComp but damned if I fully understand why. I certainly couldn’t explain it or do it again
I get the basic concept of toComp, but no matter how much I read or how many videos I watch, I just can’t get the nuts and bolts to sink into my brain. So if it’s a.toComp([0,0,0]) I get that [0,0,0] is the top-left corner of the comp, but to what end? Do you always use that? What if the layer isn’t comp sized? What is being converted into what? What goes in, what comes out?
I sorta get the what but not at all the how. Hopefully if I can finally get this to sink in, fromComp will also make sense. So can anyone explain toComp in a way that I might finally get it? I realize that’s a tough ask if you don’t know what part I’m not getting, but at this point any explanation will be more knowledge than I currently have.