def draw(self, context):
        layout = self.layout
        layout.use_property_split = True
        flow = layout.grid_flow(row_major=True, columns=0, even_columns=True, even_rows=False, align=True)

        domain = context.smoke.domain_settings
        cache_file_format = domain.cache_file_format

        col = flow.column()
        col.prop(domain, "cache_file_format")

        if cache_file_format == 'POINTCACHE':
            col = flow.column()
            col.prop(domain, "point_cache_compress_type", text="Compression")
            col.separator()

        elif cache_file_format == 'OPENVDB':
            if not bpy.app.build_options.openvdb:
                row = layout.row(align=True)
                row.alignment = 'RIGHT'
                row.label(text="Built without OpenVDB support")
                return

            col = flow.column()
            col.prop(domain, "openvdb_cache_compress_type", text="Compression")
            col.prop(domain, "data_depth", text="Data Depth")
            col.separator()

        cache = domain.point_cache
        point_cache_ui(self, cache, (cache.is_baked is False), 'SMOKE')
Example #2
0
    def draw(self, context):
        layout = self.layout

        domain = context.smoke.domain_settings
        cache_file_format = domain.cache_file_format

        layout.prop(domain, "cache_file_format")

        if cache_file_format == 'POINTCACHE':
            layout.label(text="Compression:")
            layout.row().prop(domain, "point_cache_compress_type", expand=True)
        elif cache_file_format == 'OPENVDB':
            if not bpy.app.build_options.openvdb:
                layout.label("Built without OpenVDB support")
                return

            layout.label(text="Compression:")
            layout.row().prop(domain,
                              "openvdb_cache_compress_type",
                              expand=True)
            row = layout.row()
            row.label("Data Depth:")
            row.prop(domain, "data_depth", expand=True, text="Data Depth")

        cache = domain.point_cache
        point_cache_ui(self, context, cache, (cache.is_baked is False),
                       'SMOKE')
    def draw(self, context):
        scene = context.scene
        rbw = scene.rigidbody_world

        point_cache_ui(self, context, rbw.point_cache,
                       rbw.point_cache.is_baked is False and rbw.enabled,
                       'RIGID_BODY')
    def draw(self, context):
        layout = self.layout

        md = context.smoke.domain_settings
        cache = md.point_cache

        layout.label(text="Compression:")
        layout.prop(md, "point_cache_compress_type", expand=True)

        point_cache_ui(self, context, cache, (cache.is_baked is False), 'SMOKE')
Example #5
0
    def draw(self, context):
        layout = self.layout

        md = context.smoke.domain_settings
        cache = md.point_cache

        layout.label(text="Compression:")
        layout.prop(md, "point_cache_compress_type", expand=True)

        point_cache_ui(self, context, cache, (cache.is_baked is False), 'SMOKE')
    def draw(self, context):
        layout = self.layout

        domain = context.smoke.domain_settings
        cache_file_format = domain.cache_file_format

        layout.prop(domain, "cache_file_format")

        if cache_file_format == 'POINTCACHE':
            layout.label(text="Compression:")
            layout.prop(domain, "point_cache_compress_type", expand=True)
        elif cache_file_format == 'OPENVDB':
            if not bpy.app.build_options.openvdb:
                layout.label("Built without OpenVDB support")
                return

            layout.label(text="Compression:")
            layout.prop(domain, "openvdb_cache_compress_type", expand=True)
            row = layout.row()
            row.label("Data Depth:")
            row.prop(domain, "data_depth", expand=True, text="Data Depth")

        cache = domain.point_cache
        point_cache_ui(self, context, cache, (cache.is_baked is False), 'SMOKE')
    def draw(self, context):
        psys = context.particle_system

        point_cache_ui(self, context, psys.point_cache, True, 'HAIR' if (psys.settings.type == 'HAIR') else 'PSYS')
Example #8
0
 def draw(self, context):
     md = context.cloth
     point_cache_ui(self, md.point_cache, cloth_panel_enabled(md), 'CLOTH')
    def draw(self, context):
        psys = context.particle_system

        point_cache_ui(self, context, psys.point_cache, True, 'HAIR' if
                       (psys.settings.type == 'HAIR') else 'PSYS')
 def draw(self, context):
     md = context.soft_body
     point_cache_ui(self, context, md.point_cache,
                    softbody_panel_enabled(md), 'SOFTBODY')
    def draw(self, context):
        surface = context.dynamic_paint.canvas_settings.canvas_surfaces.active
        cache = surface.point_cache

        point_cache_ui(self, context, cache, (cache.is_baked is False), 'DYNAMIC_PAINT')
 def draw(self, context):
     md = context.cloth
     point_cache_ui(self, context, md.point_cache, cloth_panel_enabled(md), 'CLOTH')
    def draw(self, context):
        surface = context.dynamic_paint.canvas_settings.canvas_surfaces.active
        cache = surface.point_cache

        point_cache_ui(self, context, cache, (cache.is_baked is False),
                       'DYNAMIC_PAINT')
 def draw(self, context):
     md = context.soft_body
     point_cache_ui(self, context, md.point_cache, softbody_panel_enabled(md), 'SOFTBODY')
Example #15
0
    def draw(self, context):
        scene = context.scene
        rbw = scene.rigidbody_world

        point_cache_ui(self, context, rbw.point_cache, rbw.point_cache.is_baked is False and rbw.enabled, 'RIGID_BODY')
Example #16
0
    def draw(self, context):
        psys = context.particle_system

        point_cache_ui(self, context, psys.point_cache, True, "HAIR" if (psys.settings.type == "HAIR") else "PSYS")