This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Ismael Gonzalez
Posted Dec 11 - Read on Facebook

Hi all, is there any easy way to access child views by name from a PSD object?

2 Comments

Aaron Carámbula
Ismael Gonzalez

Thx Aaron Carámbula, as i thought there is no official way to do it,
i'm doing it in this way, and works nice

utils.generateChildViews = function(parentView) {
parentView.childView = {};
for (var i in parentView._subViews) {
parentView.childView[parentView._subViews[i].name] = parentView._subViews[i];
}
}

Read the entire post on Facebook