# Modular Tree

**URL:** <https://blenderartists.org/t/modular-tree/674043>\
**Category:** Released Add-ons and Extensions\
**Tags:** add-ons, free\
**Created:** [August 23, 2016, 2:35am UTC](https://blenderartists.org/t/modular-tree/674043 "2016-08-23T02:35:14Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maxime](https://blenderartists.org/letter_avatar_proxy/v4/letter/m/a9adbd/32.png) [@Maxime](https://blenderartists.org/u/Maxime)\
**Post date:** [August 23, 2016, 2:35am UTC](https://blenderartists.org/t/modular-tree/674043/1 "2016-08-23T02:35:14Z")

</div>

This is an addon that allows the creation of fully skinned, unwrapped trees. You can find the previous thread [here](https://blenderartists.org/forum/showthread.php?398485-Tree-with-connected-branches). You can download the latest version on the github repository [here](https://github.com/MaximeHerpin/Blender-Modular-tree-addon/wiki).

Here is an example:

 ![](https://blenderartists.org/uploads/default/original/4X/a/0/8/a08f6eaf402914197b1bae0982a8d966e1027e80.jpg)  

Have fun with it !

---

<div class="post-metadata">

**Author:** ![wuren](https://blenderartists.org/letter_avatar_proxy/v4/letter/w/ed8c4c/32.png) [@wuren](https://blenderartists.org/u/wuren)\
**Post date:** [August 23, 2016, 2:54am UTC](https://blenderartists.org/t/modular-tree/674043/2 "2016-08-23T02:54:53Z")

</div>

It looks awesome ! Thanks for sharing this great addon !

---

<div class="post-metadata">

**Author:** ![theApe](https://blenderartists.org/letter_avatar_proxy/v4/letter/t/47e85d/32.png) [@theApe](https://blenderartists.org/u/theApe)\
**Post date:** [August 23, 2016, 2:58am UTC](https://blenderartists.org/t/modular-tree/674043/3 "2016-08-23T02:58:39Z")

</div>

Ooh, a new version! And that roadmap looks great 😃

Thank you, and Graphics\_Dev, for the wonderful work on this addon. Hope to use it for my own project soon!

---

<div class="post-metadata">

**Author:** ![hris](https://blenderartists.org/letter_avatar_proxy/v4/letter/h/b487fb/32.png) [@hris](https://blenderartists.org/u/hris)\
**Post date:** [August 23, 2016, 8:32am UTC](https://blenderartists.org/t/modular-tree/674043/4 "2016-08-23T08:32:56Z")

</div>

I have error after installed script (blender 2.77a downloaded from [blender.org](http://blender.org)). I used “install from file” option. I don’t have other version of this addon installed.

### Attachments

 ![](https://blenderartists.org/uploads/default/original/4X/3/7/7/37706b332705c5d8e0db6b5a88c3d46adfefe1c1.jpg)

---

<div class="post-metadata">

**Author:** ![Graphics\_Dev](https://blenderartists.org/user_avatar/blenderartists.org/graphics_dev/32/39915_2.png) [@Graphics\_Dev](https://blenderartists.org/u/Graphics_Dev)\
**Post date:** [August 23, 2016, 9:14am UTC](https://blenderartists.org/t/modular-tree/674043/5 "2016-08-23T09:14:25Z")

</div>

@hris

Could you follow the installation guidelines I wrote here:

> **[MaximeHerpin/modular\_tree](https://github.com/MaximeHerpin/modular_tree/wiki/Installation-Instructions)**
>
> Contribute to modular\_tree development by creating an account on GitHub.

I think you must have done something strange w/ the naming perhaps?

Let me know if this solves your problem.

If this doesn’t solve your problem, can you edit your post and add a screenshot of the system console (Window \> Toggle system console)? Please expand the window so I can see as much of it as possible 🙂

Edit:

I think I see your problem…you named the file - “addon\_add\_Modular\_tree\_1.4.py” so blender is confused with the extra period (it thinks the file format is .4.py which is wrong). If you follow the installation instructions you will avoid this, or you can just rename it to “addon\_add\_Modular\_tree.py”.

@Maxime

Can you edit your post to link to the installation guidelines instead of the main file? I think it would be a bit less confusing for new users…:eek:

---

<div class="post-metadata">

**Author:** ![theApe](https://blenderartists.org/letter_avatar_proxy/v4/letter/t/47e85d/32.png) [@theApe](https://blenderartists.org/u/theApe)\
**Post date:** [August 23, 2016, 10:06am UTC](https://blenderartists.org/t/modular-tree/674043/6 "2016-08-23T10:06:16Z")

</div>

So… this is what happens when you don´t know what you´re doing and accidentally enter way to high numbers 😛  
[ATTACH=CONFIG]450262[/ATTACH]  
Took a minute or two to calculate. Afraid to even think about leaves XD

---

<div class="post-metadata">

**Author:** ![Graphics\_Dev](https://blenderartists.org/user_avatar/blenderartists.org/graphics_dev/32/39915_2.png) [@Graphics\_Dev](https://blenderartists.org/u/Graphics_Dev)\
**Post date:** [August 23, 2016, 10:26am UTC](https://blenderartists.org/t/modular-tree/674043/7 "2016-08-23T10:26:29Z")

</div>

Yeah, you certainly don’t want branch iterations too high 🙂 While Maxime is currently working to improve uv speed, make sure you don’t turn on uv unwrapping if it is already about to kill your system :spin:

Doing an unwrap on that many faces could take hours (slight exaggeration). :eek:

Also, beware of armatures, as they will take awhile.

Leaves, on the other hand, are actually comparatively fast because they are just particles. Maxime added a twig generation tool (in the Make Twig panel) that can make a nice mesh to setup in the particle system’s object field! I must say, it looks pretty cool.

Version 2.0 will greatly improve the unwrapping speed, and include an auto-saving feature so that you CAN mess around with high values AND not lose your work!

BTW if you are using windows os, you can do “Window \> Toggle System Console” you can see what stage the add-on is in and see how long it took (provided you have V.1.4 or higher). If you are on linux or mac, you will need to run blender from the command line…more on that [here](https://www.blender.org/manual/advanced/command_line/introduction.html).

---

<div class="post-metadata">

**Author:** ![bliblubli](https://blenderartists.org/user_avatar/blenderartists.org/bliblubli/32/609410_2.png) [@bliblubli](https://blenderartists.org/u/bliblubli)\
**Post date:** [August 23, 2016, 11:32am UTC](https://blenderartists.org/t/modular-tree/674043/8 "2016-08-23T11:32:56Z")

</div>

Impressive addon indeed 🙂 Got to try it now 😃

---

<div class="post-metadata">

**Author:** ![bliblubli](https://blenderartists.org/user_avatar/blenderartists.org/bliblubli/32/609410_2.png) [@bliblubli](https://blenderartists.org/u/bliblubli)\
**Post date:** [August 23, 2016, 12:02pm UTC](https://blenderartists.org/t/modular-tree/674043/9 "2016-08-23T12:02:18Z")

</div>

> [@bliblubli](#):
>
> Impressive addon indeed 🙂 Got to try it now 😃

The Twig generator gives really good looking branches. Would be great to add the generated twig automatically to the tree’s particle system or best to let the user choose the twig in your addon’s panel. It would allow to use custom hand-made twigs without going in the 1000 of options of the particle system. Some scale option near to it would also be helpfull as the default scale of 0.15 is really small for the twigs. And it would allow to keep those values after an update.

Some presets would also help to understand the different parameters and be like a starting tutorial to learn from. Your and Maxime’s work really bring Blender to another level of quality regarding tree generation!

---

<div class="post-metadata">

**Author:** ![Graphics\_Dev](https://blenderartists.org/user_avatar/blenderartists.org/graphics_dev/32/39915_2.png) [@Graphics\_Dev](https://blenderartists.org/u/Graphics_Dev)\
**Post date:** [August 23, 2016, 12:17pm UTC](https://blenderartists.org/t/modular-tree/674043/10 "2016-08-23T12:17:42Z")

</div>

@bliblubli Thanks for the input! I’ve added two issues for them…we’ll get around to it as soon as possible. Currently Maxime is fighting a strange bug with the twig’s unwrapping, but other than that V.2.0 is ready to go!

Edit:

Version 2.0 is merged into master!

Maxime added an awesome “last unwrapped iteration” setting, and I added auto-saving of everything in your blender file (including images and texts).

---

<div class="post-metadata">

**Author:** ![theApe](https://blenderartists.org/letter_avatar_proxy/v4/letter/t/47e85d/32.png) [@theApe](https://blenderartists.org/u/theApe)\
**Post date:** [August 24, 2016, 4:06am UTC](https://blenderartists.org/t/modular-tree/674043/11 "2016-08-24T04:06:16Z")

</div>

> Release 2.1 - Available
> 
> - Built-in Presets - Functionality done

You guys work at a blazing speed 😜 Can´t wait for batch tree generation 😃

---

<div class="post-metadata">

**Author:** ![Jakasan](https://blenderartists.org/letter_avatar_proxy/v4/letter/j/e56c9b/32.png) [@Jakasan](https://blenderartists.org/u/Jakasan)\
**Post date:** [August 24, 2016, 10:48am UTC](https://blenderartists.org/t/modular-tree/674043/12 "2016-08-24T10:48:56Z")

</div>

Awesome, thanks a lot. Also would be nice to have some tutorial.  
I not find leaves orientation to ground, from this you can decide is tree real or digital, it will be nice feature.

---

<div class="post-metadata">

**Author:** ![sourvinos](https://blenderartists.org/user_avatar/blenderartists.org/sourvinos/32/443469_2.png) [@sourvinos](https://blenderartists.org/u/sourvinos)\
**Post date:** [August 24, 2016, 11:49am UTC](https://blenderartists.org/t/modular-tree/674043/13 "2016-08-24T11:49:01Z")

</div>

Thank you very much for this awesome add-on, it creates believable trees and let you edit them at any moment, it’s way faster than the Sapling add-on and much more feasible, great work!

If I may suggest, I would like to have options to create twigs with some different leave geometries, such as simple quads for distant trees so to save memory and render time, or even more detailed shaped leaf like, so to avoid alpha masks.

Thank you again, Maxime and Graphics\_Dev!

paolo

---

<div class="post-metadata">

**Author:** ![YAFU](https://blenderartists.org/user_avatar/blenderartists.org/yafu/32/25605_2.png) [@YAFU](https://blenderartists.org/u/YAFU)\
**Post date:** [August 24, 2016, 12:06pm UTC](https://blenderartists.org/t/modular-tree/674043/14 "2016-08-24T12:06:14Z")

</div>

Thank you very much!

I do not understand how the presets system works. I have seen that there is a prest in github, but I do not know where I should put the file so that it can be readed by the addon.

Edit:  
Ok, just after writing the message I happened to look in Blender addons settings. There it is  
Once a preset is saved the first time, a folder called ‘mod\_tree\_presets’ is created in Blender addons folder.

---

<div class="post-metadata">

**Author:** ![Graphics\_Dev](https://blenderartists.org/user_avatar/blenderartists.org/graphics_dev/32/39915_2.png) [@Graphics\_Dev](https://blenderartists.org/u/Graphics_Dev)\
**Post date:** [August 24, 2016, 12:48pm UTC](https://blenderartists.org/t/modular-tree/674043/15 "2016-08-24T12:48:24Z")

</div>

@YAFU

The preset is just my “blank” so to speak so it won’t do you much good to install as its mostly just the defaults. I will let Maxime make a few presets as I still haven’t spent too much time mastering the settings as I would if I was approaching it as an artist. That’s why I only said the _functionality_ was done on github 🙂

You can read our ongoing discussion about it here:

> <https://github.com/MaximeHerpin/modular_tree/issues/57>

To install a preset though, just open up the user prefs for the add-on and navigate to the preset with the file browser (you may have to disable relative path here). Then hit “Install Preset”. It should be in your list of presets now!

 ![](https://blenderartists.org/uploads/default/original/4X/2/5/9/259d6cf9832d0cde09f33fd0a7271b8ca7cfbe37.jpeg)  

If you have your own presets, I just made an issue [here](https://github.com/MaximeHerpin/Blender-Modular-tree-addon/issues/66) where you can post them for everyone else to use/learn from. Be aware that this add-on is still under heavy development, and while I don’t see any major changes popping up soon, some presets may not work well with newer versions.

---

<div class="post-metadata">

**Author:** ![Graphics\_Dev](https://blenderartists.org/user_avatar/blenderartists.org/graphics_dev/32/39915_2.png) [@Graphics\_Dev](https://blenderartists.org/u/Graphics_Dev)\
**Post date:** [August 24, 2016, 1:45pm UTC](https://blenderartists.org/t/modular-tree/674043/16 "2016-08-24T13:45:02Z")

</div>

> [@BrilliantApe](#):
>
> You guys work at a blazing speed 😜 Can´t wait for batch tree generation 😃

**Release 2.2 - Available**

- Batch tree generation

---

<div class="post-metadata">

**Author:** ![Maxime](https://blenderartists.org/letter_avatar_proxy/v4/letter/m/a9adbd/32.png) [@Maxime](https://blenderartists.org/u/Maxime)\
**Post date:** [August 24, 2016, 1:46pm UTC](https://blenderartists.org/t/modular-tree/674043/17 "2016-08-24T13:46:34Z")

</div>

@BrilliantApe  
Batch tree generation is done, you can download is from the develop branch, let me know if you want more control over it.

@Jakasan  
I will make a tutorial soon. Unfortunately Blender does not allows me to control particle orientation with python, we can only hope that a developer will integrate it at some point.

@Sourvinos  
Different leaf shapes would be a nice touch indeed, I will work on it !

To all of you: we really appreciate your ideas and feedback, and we feel rewarded by your enthusiasm !

---

<div class="post-metadata">

**Author:** ![theApe](https://blenderartists.org/letter_avatar_proxy/v4/letter/t/47e85d/32.png) [@theApe](https://blenderartists.org/u/theApe)\
**Post date:** [August 24, 2016, 2:10pm UTC](https://blenderartists.org/t/modular-tree/674043/18 "2016-08-24T14:10:31Z")

</div>

> [@Maxime](#):
>
> @BrilliantApe  
> Batch tree generation is done, you can download is from the develop branch, let me know if you want more control over it.

Works like a charm (though 180 trees crashed Blender, lol)! First I thought random placement would be nice instead of the grid, but you´re going to place them manually anyway (the addon should focus on tree generation). Stellar work, Maxime. Let´s hope I have more time to play with it this weekend, all those settings to try out 🙂

---

<div class="post-metadata">

**Author:** ![sourvinos](https://blenderartists.org/user_avatar/blenderartists.org/sourvinos/32/443469_2.png) [@sourvinos](https://blenderartists.org/u/sourvinos)\
**Post date:** [August 24, 2016, 2:11pm UTC](https://blenderartists.org/t/modular-tree/674043/19 "2016-08-24T14:11:01Z")

</div>

Thank you both for your commitment and enthusiasm (and skill), you are great!

I think that a better placing for the mod\_tree\_presets could be in the “presets” folder inside the “scripts” folder where also the addons folder is located.

paolo

---

<div class="post-metadata">

**Author:** ![3pointEdit](https://blenderartists.org/user_avatar/blenderartists.org/3pointedit/32/2482_2.png) [@3pointEdit](https://blenderartists.org/u/3pointEdit)\
**Post date:** [August 25, 2016, 12:34am UTC](https://blenderartists.org/t/modular-tree/674043/20 "2016-08-25T00:34:13Z")

</div>

How do I use the twig feature? It only makes a single twig at the root of my tree object?

[Next page](https://blenderartists.org/t/modular-tree/674043.md?page=2)
