Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5849

[python] searching for a layer name using wildcard doesn't seem to work

$
0
0

@ivelin.peychev wrote:

Is this something new or it was always like this?

here’s my code:

import rhinoscriptsyntax as rs

import time


def hide_layers(layer_list=None):
    if layer_list is None:
        layers_to_hide = ["*fault"]
        layer_list = layers_to_hide
    else:
        pass
    for layer in layer_list:
        rs.LayerVisible(layer,False)

if __name__=="__main__":
    ts = time.time()
    
    hide_layers()
    
    te = time.time()
    print "Elapsed time is {:.2f}".format(te-ts)

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 5849

Latest Images

Trending Articles



Latest Images