2011-09-27

メモ

---------------------------------------
import re

list = []

def hogehoge(s):
    an = nuke.allNodes()
    for i in an:
        name = i.name()
        if re.match(s,name) != None:
            list.append(i)

    return list
---------------------------------------

と思ったけど、コレだと実行するたびにリストが増えていく・・・


---------------------------------------

import re

def hogehoge(s):
  list = []
    an = nuke.allNodes()
    for i in an:
        name = i.name()
        if re.match(s,name) != None:
            list.append(i)

    return list
---------------------------------------

こうかな?





No comments:

Post a Comment