Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/blender/addon/properties.py
| Show All 40 Lines | enum_feature_set = ( | ||||
| ) | ) | ||||
| enum_displacement_methods = ( | enum_displacement_methods = ( | ||||
| ('BUMP', "Bump", "Bump mapping to simulate the appearance of displacement"), | ('BUMP', "Bump", "Bump mapping to simulate the appearance of displacement"), | ||||
| ('TRUE', "True", "Use true displacement only, requires fine subdivision"), | ('TRUE', "True", "Use true displacement only, requires fine subdivision"), | ||||
| ('BOTH', "Both", "Combination of displacement and bump mapping"), | ('BOTH', "Both", "Combination of displacement and bump mapping"), | ||||
| ) | ) | ||||
| enum_subdivision_types = ( | |||||
| ('NONE', "None", "No subdivision"), | |||||
| ('LINEAR', "Linear", "Use linear subdivision"), | |||||
| ('CATMULL_CLARK', "Catmull–Clark", "Use Catmull-Clark subdivision"), | |||||
| ) | |||||
| enum_bvh_types = ( | enum_bvh_types = ( | ||||
| ('DYNAMIC_BVH', "Dynamic BVH", "Objects can be individually updated, at the cost of slower render time"), | ('DYNAMIC_BVH', "Dynamic BVH", "Objects can be individually updated, at the cost of slower render time"), | ||||
| ('STATIC_BVH', "Static BVH", "Any object modification requires a complete BVH rebuild, but renders faster"), | ('STATIC_BVH', "Static BVH", "Any object modification requires a complete BVH rebuild, but renders faster"), | ||||
| ) | ) | ||||
| enum_filter_types = ( | enum_filter_types = ( | ||||
| ('BOX', "Box", "Box filter"), | ('BOX', "Box", "Box filter"), | ||||
| ('GAUSSIAN', "Gaussian", "Gaussian filter"), | ('GAUSSIAN', "Gaussian", "Gaussian filter"), | ||||
| ▲ Show 20 Lines • Show All 896 Lines • ▼ Show 20 Lines | def register(cls): | ||||
| ) | ) | ||||
| cls.displacement_method = EnumProperty( | cls.displacement_method = EnumProperty( | ||||
| name="Displacement Method", | name="Displacement Method", | ||||
| description="Method to use for the displacement", | description="Method to use for the displacement", | ||||
| items=enum_displacement_methods, | items=enum_displacement_methods, | ||||
| default='BUMP', | default='BUMP', | ||||
| ) | ) | ||||
| cls.subdivision_type = EnumProperty( | |||||
| name="Subdivision Type", | |||||
| description="Type of subdivision to use", | |||||
| items=enum_subdivision_types, | |||||
| default='NONE', | |||||
| ) | |||||
| cls.dicing_rate = FloatProperty( | |||||
| name="Dicing Rate", | |||||
| description="Multiplier for scene dicing rate", | |||||
| min=0.1, max=1000.0, | |||||
| default=1.0, | |||||
| ) | |||||
| @classmethod | @classmethod | ||||
| def unregister(cls): | def unregister(cls): | ||||
| del bpy.types.Mesh.cycles | del bpy.types.Mesh.cycles | ||||
| del bpy.types.Curve.cycles | del bpy.types.Curve.cycles | ||||
| del bpy.types.MetaBall.cycles | del bpy.types.MetaBall.cycles | ||||
| class CyclesObjectBlurSettings(bpy.types.PropertyGroup): | class CyclesObjectSettings(bpy.types.PropertyGroup): | ||||
| @classmethod | @classmethod | ||||
| def register(cls): | def register(cls): | ||||
| bpy.types.Object.cycles = PointerProperty( | bpy.types.Object.cycles = PointerProperty( | ||||
| name="Cycles Object Settings", | name="Cycles Object Settings", | ||||
| description="Cycles object settings", | description="Cycles object settings", | ||||
| type=cls, | type=cls, | ||||
| ) | ) | ||||
| cls.use_motion_blur = BoolProperty( | cls.use_motion_blur = BoolProperty( | ||||
| name="Use Motion Blur", | name="Use Motion Blur", | ||||
| Show All 15 Lines | def register(cls): | ||||
| ) | ) | ||||
| cls.use_camera_cull = BoolProperty( | cls.use_camera_cull = BoolProperty( | ||||
| name="Use Camera Cull", | name="Use Camera Cull", | ||||
| description="Allow this object and its duplicators to be culled by camera space culling", | description="Allow this object and its duplicators to be culled by camera space culling", | ||||
| default=False, | default=False, | ||||
| ) | ) | ||||
| cls.use_adaptive_subdivision = BoolProperty( | |||||
| name="Use Adaptive Subdivision", | |||||
brecht: I would prefer "Use Adaptive Subdivision". | |||||
| description="Use adaptive render time subdivision", | |||||
| default=False, | |||||
| ) | |||||
| cls.dicing_rate = FloatProperty( | |||||
| name="Dicing Rate", | |||||
| description="Multiplier for scene dicing rate", | |||||
| min=0.1, max=1000.0, | |||||
| default=1.0, | |||||
| ) | |||||
| @classmethod | @classmethod | ||||
| def unregister(cls): | def unregister(cls): | ||||
| del bpy.types.Object.cycles | del bpy.types.Object.cycles | ||||
| class CyclesCurveRenderSettings(bpy.types.PropertyGroup): | class CyclesCurveRenderSettings(bpy.types.PropertyGroup): | ||||
| @classmethod | @classmethod | ||||
| def register(cls): | def register(cls): | ||||
| ▲ Show 20 Lines • Show All 100 Lines • ▼ Show 20 Lines | |||||
| def register(): | def register(): | ||||
| bpy.utils.register_class(CyclesRenderSettings) | bpy.utils.register_class(CyclesRenderSettings) | ||||
| bpy.utils.register_class(CyclesCameraSettings) | bpy.utils.register_class(CyclesCameraSettings) | ||||
| bpy.utils.register_class(CyclesMaterialSettings) | bpy.utils.register_class(CyclesMaterialSettings) | ||||
| bpy.utils.register_class(CyclesLampSettings) | bpy.utils.register_class(CyclesLampSettings) | ||||
| bpy.utils.register_class(CyclesWorldSettings) | bpy.utils.register_class(CyclesWorldSettings) | ||||
| bpy.utils.register_class(CyclesVisibilitySettings) | bpy.utils.register_class(CyclesVisibilitySettings) | ||||
| bpy.utils.register_class(CyclesMeshSettings) | bpy.utils.register_class(CyclesMeshSettings) | ||||
| bpy.utils.register_class(CyclesObjectSettings) | |||||
| bpy.utils.register_class(CyclesCurveRenderSettings) | bpy.utils.register_class(CyclesCurveRenderSettings) | ||||
| bpy.utils.register_class(CyclesCurveSettings) | bpy.utils.register_class(CyclesCurveSettings) | ||||
| def unregister(): | def unregister(): | ||||
| bpy.utils.unregister_class(CyclesRenderSettings) | bpy.utils.unregister_class(CyclesRenderSettings) | ||||
| bpy.utils.unregister_class(CyclesCameraSettings) | bpy.utils.unregister_class(CyclesCameraSettings) | ||||
| bpy.utils.unregister_class(CyclesMaterialSettings) | bpy.utils.unregister_class(CyclesMaterialSettings) | ||||
| bpy.utils.unregister_class(CyclesLampSettings) | bpy.utils.unregister_class(CyclesLampSettings) | ||||
| bpy.utils.unregister_class(CyclesWorldSettings) | bpy.utils.unregister_class(CyclesWorldSettings) | ||||
| bpy.utils.unregister_class(CyclesMeshSettings) | bpy.utils.unregister_class(CyclesMeshSettings) | ||||
| bpy.utils.unregister_class(CyclesObjectSettings) | |||||
| bpy.utils.unregister_class(CyclesVisibilitySettings) | bpy.utils.unregister_class(CyclesVisibilitySettings) | ||||
| bpy.utils.unregister_class(CyclesCurveRenderSettings) | bpy.utils.unregister_class(CyclesCurveRenderSettings) | ||||
| bpy.utils.unregister_class(CyclesCurveSettings) | bpy.utils.unregister_class(CyclesCurveSettings) | ||||
I would prefer "Use Adaptive Subdivision".