函数研究

refs.dependents  好像是材质类的函数,

refs.dependents $.material.diffuseMap 我用一个球体进行操作,

返回是。#(ReferenceTarget:Material_Editor, ReferenceTarget:Scene, ReferenceTarget:ReferenceTarget, Standard_9h:Standard

, $Sphere:foo_Sphere02 @ [-15.521431,58.839783,0.000000], ReferenceTarget:NodeSelection, ReferenceTarget:ReferenceTarget, #materialLibrary())

refs.dependents

通过这么一句话基本是明白了。refs.dependents 会返回好多节点  isvalidnode 这个就是节点可见,一般都是收集东西。

for o in refs.dependents $.material.diffuseMap where isvalidnode o collect o
 
oop = refs.dependents $.material.diffuseMap
isvalidnode oop[1]

posted on 2011-02-21 16:09  盖天00  阅读(195)  评论(0编辑  收藏  举报

导航