blender-colab icon indicating copy to clipboard operation
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

Open ACMOIDRE opened this issue 1 year ago • 5 comments

ACMOIDRE avatar Apr 27 '23 07:04 ACMOIDRE

Quick 1 Minute Tut on Filling Path and other detail before render. Bcoz it still confusing for new user

ACMOIDRE avatar Apr 27 '23 07:04 ACMOIDRE

example: I have uploaded .blender file on Gdrive and i have selected upload "url" what should i paste in url_blend

ACMOIDRE avatar Apr 27 '23 08:04 ACMOIDRE

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.

ACMOIDRE avatar Apr 27 '23 08:04 ACMOIDRE

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")

ACMOIDRE avatar Apr 27 '23 08:04 ACMOIDRE