Git Product home page Git Product logo

blenderscriptingforcfd's Introduction

A ready-to-run script for Blender Cycles Render v2.78

A water bubble in air simulation rendered in Blender

your_alternative_text

This repo demonstrates the Python scripting in Blender Cycles Render for blender v2.78. It shows how to create multiple materials and shade them differently, and render them using a Python script that can be run from the command line in the background. This is a ready to run code. It has 5 .stl mesh files corresponding to a convecting water bubble. The script loops through these files and creates and saves the render images. To run this code, do the following in the command line in this directory.

<path_to_blender_exec> --background --python BlenderCyclesTest.py

<path_to_blender_exec> will look like for eg. ./blender.app/Contents/MacOS/blender

This will create 5 images in this directory.

How it works

The basic idea is to create a scene using the blender GUI - load a single .stl file in the blender GUI, and set the background, camera angle and lighting for the scene. Make sure that the render looks the way you want. Then delete the object (here it is the water drop), and save the scene as a .blend file (Here it is DropScene.blend). The Python script will load the .blend file, and the object (the moving water drop) will be loaded inside the for loop in the python script.

blenderscriptingforcfd's People

Contributors

nataraj2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

blenderscriptingforcfd's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.