示例#1
0
文件: RTEngine.py 项目: maherdsh/vb25
	def poll(cls, context):
		scene= context.scene
		rd=    scene.render
		if not hasattr(scene.vray, ID):
			return False
		use=   scene.vray.RTEngine.enabled
		return (use and ui.engine_poll(__class__, context))
示例#2
0
 def poll(cls, context):
     scene = context.scene
     rd = scene.render
     if not hasattr(scene.vray, ID):
         return False
     show = scene.vray.SettingsCaustics.on
     return (show and ui.engine_poll(__class__, context))
示例#3
0
	def poll(cls, context):
		scene= context.scene
		rd=    scene.render
		if not hasattr(scene.vray, ID):
			return False
		show= scene.vray.SettingsCaustics.on
		return (show and ui.engine_poll(__class__, context))
示例#4
0
 def poll(cls, context):
     scene = context.scene
     rd = scene.render
     if not hasattr(scene.vray, ID):
         return False
     use = scene.vray.RTEngine.enabled
     return (use and ui.engine_poll(__class__, context))
示例#5
0
 def poll(cls, context):
     tex = context.texture
     if not tex:
         return False
     VRayTexture = tex.vray
     engine = context.scene.render.engine
     return ((tex and tex.type == 'VRAY' and VRayTexture.type == ID) and (ui.engine_poll(__class__, context)))
示例#6
0
 def poll(cls, context):
     tex = context.texture
     if not tex:
         return False
     VRayTexture = tex.vray
     engine = context.scene.render.engine
     return ((tex and tex.type == 'VRAY' and VRayTexture.type == ID)
             and (ui.engine_poll(__class__, context)))
示例#7
0
    def poll(cls, context):
        if not ui.engine_poll(cls, context):
            return False

        tex = context.texture
        if not tex:
            return False

        if tex.type == 'VRAY':
            if tex.vray.type != 'NONE' and tex.vray.type not in PURE_PROCEDURAL:
                return True

        if tex.type == 'IMAGE':
            if tex.image:
                return True

        return False
示例#8
0
 def poll(cls, context):
     tex = context.texture
     return tex and tex.type == 'VRAY' and tex.vray.type == ID and ui.engine_poll(
         cls, context)
示例#9
0
	def poll(cls, context):
		tex= context.texture
		return tex and tex.type == 'VRAY' and tex.vray.type == ID and ui.engine_poll(cls, context)