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

What is Framer? Join the Community
Return to index
Propeller Katapulsky
Posted Apr 29 - Read on Facebook

i am trying to read out all names of the views in my project but it won´t work. can anybody push me into the right direction?

function readOutAllViewNamesAndAddSomething() {
for (var a=0; a<views.length;a++) {
currentView = views.getByName(views[a].name);
result = result + views[a].name + " something" + "\n";
return result;


Koen Bok

What I always do is have a top level object with views:

Views = {}

Views.myNiceViewA = new View(...)
Views.myNiceViewB = new View(...)

for (var viewName in Views) {
var view = Views[viewName];

view. ...

Read the entire post on Facebook