Skip to content

This is the molecular python script for blender, originally coded by Pyroevil. A bit similar to Lagoa Multiphysic in Softimage.

Notifications You must be signed in to change notification settings

scorpion81/Blender-Molecular-Script

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Molecular Addon for Blender

Blender-Molecular-Script

This is the molecular python script for blender, originally coded py Pyroevil. Inspired from the 2d simulator Really (1998) and Lagoa Multiphysic in Softimage.

To download the latest version go to the release section of this repository.

The script can be installed like any other addons in Blender: First way:

  • unzip the folder "molecular" in your "x.xx\scripts\addons" blender directory

or

Second Way:

  • Open Blender
  • Go in File > User Preferences > Addons tab
  • Click on "Install from file" button.
  • Browse and click the downloaded zip file and push the "Install from file..." button.

To activate the plugins:

  • Open Blender
  • Go in File > User Preferences > Addons tab
  • In the "Object" categories, you must find "Molecular"
  • Check it , close the "Blender user preferences" windows and have fun.

How to manually build Molecular:

In order for a manual recompilation clone this repo and just run

python make_release.py

from within the "Blender-Molecular-Script" folder on your desired platform,

with a python version matching blender's own being installed. (and cython, too. install with pip for example)

Or alternatively, run

python setup.py build_ext --inplace

from the "sources" folder.

How to add UVs to molecular particle instances:

This didnt seem to work in blender 3.2.x any more and was fixed in 1.1.4. Should also apply to blender 3.1.x but that was not tested by me.

When the UV data is being baked during the simulation, it will be written into the angular velocity cache part of the particle system at the moment.

Hence you can retrieve it via a particle info node later on in order to feed it into the vector socket of the texture node. Note that the Particle Info Node belongs to the Material on the Sphere aka the object which is being instanced. In the example blend file there is also a Particle Info Node on the Cube material, but it doesnt really belong there. Rather it was added by mistake.

Example with 10x10x10 Grid: molecular_bake_uv

Same Example with 30x30x30 Grid molecular_bake_uv_high

Remarks:

  • only in cycles
  • only in rendered viewport and render
  • need to re-bake the sim for UVs after loading (not persistent, it seems)

About

This is the molecular python script for blender, originally coded by Pyroevil. A bit similar to Lagoa Multiphysic in Softimage.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 50.8%
  • Cython 48.9%
  • Batchfile 0.3%