Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hey, Quick 1 Minute Tut on Filling Path and other detail before render. Bcoz it still confusing for new users #15

Open
ACMOIDRE opened this issue Apr 27, 2023 · 5 comments

Comments

@ACMOIDRE
Copy link

No description provided.

@ACMOIDRE
Copy link
Author

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

@ACMOIDRE
Copy link
Author

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

@ACMOIDRE
Copy link
Author

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
Copy link
Author

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

@Dev123456689
Copy link

Dev123456689 commented Sep 2, 2024

@ACMOIDRE
I am not the developer of this script but I have my own script that you can try:
https://colab.research.google.com/github/Dev123456689/Google_Colab_Render/blob/main/Free_Render.ipynb

for any issue or explanation raise an issue in this repository:
https://github.com/Dev123456689/Google_Colab_Render/blob/main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants