Access to specify the layer name

  • Code
    for(set(spot,1), spot LT layer.count, inc(spot), 	
        trace('layer[',spot,'].name=',layer[get(spot)].name);
    	
        );

    Dear everyone

    This is to get the names of all the layers in panorama

    If I want to get the specified layer, how to get?

  • Code
    for(set(counter,1), counter LT layer.count, inc(counter), 	
      if(layer[get(counter)].name == 'MY_LAYER_NAME',
        <!-- execution code on the selected layer here -->  
      );
    );

    or if you're talking about the layer object you can copy it using the copy method

    PS: perhaps avoid the "spot" var name it's confusing ;)

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!