IsLightReference

判断一个灯光物件是否是从另一个文件引用的。

语法

rhinoscriptsyntax.IsLightReference (object_id)

rhinoscript.light.IsLightReference (object_id)

参数

object_id

必须参数。字符串或 Guid。灯光物件的 ID 。

返回值

布尔值

如果执行成功,返回 True,如果执行不成功返回 False。

示例

import rhinoscriptsyntax as rs

id = rs.GetObject("Select a light", rs.filter.light)

if rs.IsLightReference(id):

    print "The light is a reference object."

else:

    print "The light is not a reference object."

同见

IsObjectReference