blender-colab
blender-colab copied to clipboard
Hey, Quick 1 Minute Tut on Filling Path and other detail before render. Bcoz it still confusing for new users
Quick 1 Minute Tut on Filling Path and other detail before render. Bcoz it still confusing for new user
example: I have uploaded .blender file on Gdrive and i have selected upload "url" what should i paste in url_blend
ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4.3.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored. ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4.3.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored. ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4.3.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored. ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4.3.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored. An exception has occurred, use %tb to see the full traceback.
SystemExit: Invalid file extension, only .blend and .zip can be uploaded.
After Pasting : content/.../......blend
I 'm not able run script inside blend file for enable baking process for blender files.
---------- SCRIPT
------- https://www.youtube.com/watch?v=bJ2jCzKXQ_A
import bpy bpy.ops.fluid.bake_all()
def enable_gpus(device_type, use_cpus=False): preferences = bpy.context.preferences cycles_preferences = preferences.addons["cycles"].preferences cuda_devices, opencl_devices = cycles_preferences.get_devices()
if device_type == "CUDA":
devices = cuda_devices
elif device_type == "OPENCL":
devices = opencl_devices
else:
raise RuntimeError("Unsupported device type")
activated_gpus = []
for device in devices:
if device.type == "CPU":
device.use = use_cpus
else:
device.use = True
activated_gpus.append(device.name)
cycles_preferences.compute_device_type = device_type
bpy.context.scene.cycles.device = "GPU"
return activated_gpus
enable_gpus("CUDA")