Forum Replies Created

  • Thanks Dan! Will this also account for if the last line of the title is shorter than the others?

  • Erin Prysiazny

    January 8, 2019 at 3:47 am in reply to: toWorldVec Error when Scale is 0

    Thanks Dan! This works great ☺

    My end goal was to put this on the stroke width of a layer and have the stroke width maintain the same value while also accounting for how much the scale of its parents and itself affect it.

    I had it working with toWorldVec aside from when the scale was 0, but this works in all scenarios and makes more sense. Thanks!

  • Erin Prysiazny

    January 4, 2019 at 12:08 pm in reply to: toWorldVec Error when Scale is 0

    I tried this out and I still get this error:

    layer to world matrix isn’t invertible in fromWorld

    I don’t really know much about the world conversion expressions so I don’t totally understand why it doesn’t work. Anyone have any resources on these kinds of expressions?

  • Erin Prysiazny

    December 29, 2018 at 3:11 pm in reply to: toWorldVec Error when Scale is 0

    Would I still be able to convert the layer’s scale to world space using Math.max?

    I tried it like this and it still said that it didn’t like that I was trying to convert 0 to world space:

    thisScaleParent = Math.max(thisLayer.toWorldVec(transform.scale))

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy