Changeset View
Changeset View
Standalone View
Standalone View
netrender/client.py
| Context not available. | |||||
| def addFluidFiles(job, path): | def addFluidFiles(job, path): | ||||
| if os.path.exists(path): | if os.path.exists(path): | ||||
| pattern = re.compile("fluidsurface_(final|preview)_([0-9]+)\.(bobj|bvel)\.gz") | pattern = re.compile("fluidsurface_(final|preview)_([0-9]+)\\.(bobj|bvel)\\.gz") | ||||
| for fluid_file in sorted(os.listdir(path)): | for fluid_file in sorted(os.listdir(path)): | ||||
| match = pattern.match(fluid_file) | match = pattern.match(fluid_file) | ||||
| Context not available. | |||||
| index = "%02i" % point_cache.index | index = "%02i" % point_cache.index | ||||
| if os.path.exists(cache_path): | if os.path.exists(cache_path): | ||||
| pattern = re.compile(name + "_([0-9]+)_" + index + "\.bphys") | pattern = re.compile(name + "_([0-9]+)_" + index + "\\.bphys") | ||||
| cache_files = [] | cache_files = [] | ||||
| Context not available. | |||||
| bl_idname = 'NET_RENDER' | bl_idname = 'NET_RENDER' | ||||
| bl_label = "Network Render" | bl_label = "Network Render" | ||||
| bl_use_postprocess = False | bl_use_postprocess = False | ||||
| def render(self, scene): | def render(self, depsgraph): | ||||
| scene = depsgraph.scene | |||||
| try: | try: | ||||
| if scene.network_render.mode == "RENDER_CLIENT": | if scene.network_render.mode == "RENDER_CLIENT": | ||||
| self.render_client(scene) | self.render_client(scene) | ||||
| Context not available. | |||||