VKG5 / L-Systems

This is an add-on for Lindenmayer systems within Blender

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

L-Systems

This is an add-on for Lindenmayer systems within Blender. The add-on creates fractal patterns (Currently limited to 2D patterns) within Blender. It uses the Blender Python API to do so and supports a limited grammar as of the moment.

User Interface

The user interface provides simple to understand, self-explanatory briefs about how to use the tool. The list of supported grammar is given below:

  • F/G : Go forward by some number of units
  • B : Go backward by some number of units
  • X : Doesn't do anything, acts as a placeholder
  • - : Turn left by some degrees
  • + : Turn right by some degrees
  • [ : Corresponds to saving the current values for position and angle
  • ] : Executing the saved values in '['

(We turn 60 degrees by default)

Samples

There are a bunch of sample curves/systems that can be generated. These should help you get started with the tool and give you a basic idea about the working. For further details and study, please refer to learn. A few eamples of generated patterns can be found down below.

Samples

Code

The whole tool has been written in Python, on the Blender Python API. There are no extra dependencies and this should work with all 3.2.0+ builds of Blender. The code is heavily commented and modular. Please feel free to have a look!

Demo Video:

NOTE : THIS IS STILL A WIP. You are free to make changes and use it as and when necessary. Don't forget to give credits where necessary!

About

This is an add-on for Lindenmayer systems within Blender

License:MIT License


Languages

Language:Python 100.0%