# IvyGen: Generating Ivy in Blender (Updated 2 Aug 2011)

**URL:** <https://blenderartists.org/t/ivygen-generating-ivy-in-blender-updated-2-aug-2011/513787>\
**Category:** Released Add-ons and Extensions\
**Created:** [July 20, 2011, 12:37am UTC](https://blenderartists.org/t/ivygen-generating-ivy-in-blender-updated-2-aug-2011/513787 "2011-07-20T00:37:08Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![TrumanBlending](https://blenderartists.org/letter_avatar_proxy/v4/letter/t/ea5d25/32.png) [@TrumanBlending](https://blenderartists.org/u/TrumanBlending)\
**Post date:** [July 20, 2011, 12:37am UTC](https://blenderartists.org/t/ivygen-generating-ivy-in-blender-updated-2-aug-2011/513787/1 "2011-07-20T00:37:08Z")

</div>

_ **Introduction** _  
Here is an addon for Blender which generates ivy on objects. It is a port of the well known standalone program Ivy Generator ([http://graphics.uni-konstanz.de/~luft/ivy\_generator/](http://graphics.uni-konstanz.de/%7Eluft/ivy_generator/)) which has been made with the permission of the original author **Thomas Luft**. It is also a continuation of the efforts of Blender users **testscreenings** and **PKHG**.

_ **Download Location** _  
[https://svn.blender.org/svnroot/bf-extensions/trunk/py/scripts/addons/add\_curve\_ivygen.py](https://svn.blender.org/svnroot/bf-extensions/trunk/py/scripts/addons/add_curve_ivygen.py)  
Right click and ‘Save As’  
  
_ **Requirements** _  
 In order to use this script a build of Blender after r38676 is required.

Alternatively, a build of Blender after r38855 includes IvyGen by default.  
  
_ **Usage** _

- Download the file under “Download Location” and place it in your add on folder.
- Enable the addon through User Preferences.
- Place the 3D cursor where the Ivy should start growing.
- Select the object to grow ivy on.
- Select Add -\> Curve -\> Add Ivy in the main menu.
- Ivy parameters appear in the Tool Shelf (T-KEY).
- Change any ivy properties.
- To see your changes take effect, click “Update Ivy”.

_ **Examples** _

 ![](https://blenderartists.org/uploads/default/original/3X/4/1/41afc9e3ce685befba060d8ebe15b95652595a9b.jpg)  

 ![](https://blenderartists.org/uploads/default/original/3X/4/2/42c53bd4007cb87d60d66723cdcd35ff9468bdee.jpg)  

Cheers,  
Truman

---

<div class="post-metadata">

**Author:** ![Meta-Androcto](https://blenderartists.org/user_avatar/blenderartists.org/meta-androcto/32/3989_2.png) [@Meta-Androcto](https://blenderartists.org/u/Meta-Androcto)\
**Post date:** [July 20, 2011, 1:07am UTC](https://blenderartists.org/t/ivygen-generating-ivy-in-blender-updated-2-aug-2011/513787/2 "2011-07-20T01:07:47Z")

</div>

Hey truman!  
This is an amazing script.  
Thank you so much for all the hard work.

---

<div class="post-metadata">

**Author:** ![Ulf\_B](https://blenderartists.org/user_avatar/blenderartists.org/ulf_b/32/18244_2.png) [@Ulf\_B](https://blenderartists.org/u/Ulf_B)\
**Post date:** [July 20, 2011, 1:41am UTC](https://blenderartists.org/t/ivygen-generating-ivy-in-blender-updated-2-aug-2011/513787/3 "2011-07-20T01:41:47Z")

</div>

Many thanks for the adaption - no more imports/exports for generating trees and now for ivy as well!

You rock dude!

---

<div class="post-metadata">

**Author:** ![udeystar](https://blenderartists.org/letter_avatar_proxy/v4/letter/u/46a35a/32.png) [@udeystar](https://blenderartists.org/u/udeystar)\
**Post date:** [July 20, 2011, 2:25am UTC](https://blenderartists.org/t/ivygen-generating-ivy-in-blender-updated-2-aug-2011/513787/4 "2011-07-20T02:25:44Z")

</div>

Traceback (most recent call last):  
File “J:\000.DOCUMENT\Downloads\blender-2.58-windows64\2.58\scripts\addons\add\_curve\_ivygen.py”, line 534, in execute  
IVY.grow(radius, ob)  
File “J:\000.DOCUMENT\Downloads\blender-2.58-windows64\2.58\scripts\addons\add\_curve\_ivygen.py”, line 312, in grow  
local\_maxAdhesionDistance)  
File “J:\000.DOCUMENT\Downloads\blender-2.58-windows64\2.58\scripts\addons\add\_curve\_ivygen.py”, line 390, in adhesion  
nearest\_result = ob.closest\_point\_on\_mesh(loc)  
AttributeError: ‘Object’ object has no attribute ‘closest\_point\_on\_mesh’

location:\<unknown location\>:-1

Where dir i put the ivyGenerator.exe ? it still need or not

---

<div class="post-metadata">

**Author:** ![Ulf\_B](https://blenderartists.org/user_avatar/blenderartists.org/ulf_b/32/18244_2.png) [@Ulf\_B](https://blenderartists.org/u/Ulf_B)\
**Post date:** [July 20, 2011, 3:43am UTC](https://blenderartists.org/t/ivygen-generating-ivy-in-blender-updated-2-aug-2011/513787/5 "2011-07-20T03:43:30Z")

</div>

> [@udeystar](#):
>
> ```
> nearest_result = ob.closest_point_on_mesh(loc)
> 
> ```
> 
> AttributeError: ‘Object’ object has no attribute ‘closest\_point\_on\_mesh’  
> location:\<unknown location\>

This is an error message I got as well- but hey, it is Beta.

@ TrumanBlending

The python-API documention seems not to have any description about any property “closest\_point\_on\_mesh()”.  
Are you using a different built than the standard 2.58a?

---

<div class="post-metadata">

**Author:** ![DrBouvierLeduc](https://blenderartists.org/user_avatar/blenderartists.org/drbouvierleduc/32/2729_2.png) [@DrBouvierLeduc](https://blenderartists.org/u/DrBouvierLeduc)\
**Post date:** [July 20, 2011, 4:06am UTC](https://blenderartists.org/t/ivygen-generating-ivy-in-blender-updated-2-aug-2011/513787/6 "2011-07-20T04:06:01Z")

</div>

TrumanBlending, you’re my hero !  
Having ivygenerator directly within blender is really usefull, even more provided the original program doesn’t work anymore (at least for me, on linux).

---

<div class="post-metadata">

**Author:** ![Atom](https://blenderartists.org/user_avatar/blenderartists.org/atom/32/2832_2.png) [@Atom](https://blenderartists.org/u/Atom)\
**Post date:** [July 20, 2011, 4:49am UTC](https://blenderartists.org/t/ivygen-generating-ivy-in-blender-updated-2-aug-2011/513787/7 "2011-07-20T04:49:01Z")

</div>

I get that same error mentioned above using 2.58 r38446 32bit Windows XP64.

In a new scene I deleted the cube and added a Text object. I typed the word “Ivy”. I extruded the text and then converted it to a mesh.

---

<div class="post-metadata">

**Author:** ![TrumanBlending](https://blenderartists.org/letter_avatar_proxy/v4/letter/t/ea5d25/32.png) [@TrumanBlending](https://blenderartists.org/u/TrumanBlending)\
**Post date:** [July 20, 2011, 5:00am UTC](https://blenderartists.org/t/ivygen-generating-ivy-in-blender-updated-2-aug-2011/513787/8 "2011-07-20T05:00:08Z")

</div>

Hi All,

Apologies for the confusion, I should have stated that you require a build after r38449 to use this script. closest\_point\_on\_mesh() was added at that revision.

Cheers,  
Truman

---

<div class="post-metadata">

**Author:** ![Atom](https://blenderartists.org/user_avatar/blenderartists.org/atom/32/2832_2.png) [@Atom](https://blenderartists.org/u/Atom)\
**Post date:** [July 20, 2011, 9:36am UTC](https://blenderartists.org/t/ivygen-generating-ivy-in-blender-updated-2-aug-2011/513787/9 "2011-07-20T09:36:45Z")

</div>

I pulled down the latest build r38533 and the script does run, but using the default settings that pop up seems to produce an infinite loop. It has been running for over an hour and still has produced no results.

What are some “good” settings to use for quick results?

PS: The pop up is annoying feature. So I put my settings in and then go to the bottom of the popup to click the Ok button and I missed with the mouse and the popup disappeared. Sure enough, when I run it again I have to put my settings in all over again. This script would benefit from having all those parameters in the Tools panel like traditional scripts. IMHO.

---

<div class="post-metadata">

**Author:** ![aljo](https://blenderartists.org/letter_avatar_proxy/v4/letter/a/8e8cbc/32.png) [@aljo](https://blenderartists.org/u/aljo)\
**Post date:** [July 20, 2011, 4:25pm UTC](https://blenderartists.org/t/ivygen-generating-ivy-in-blender-updated-2-aug-2011/513787/10 "2011-07-20T16:25:15Z")

</div>

r38492 64 bit  
Win7 x64  
I also get the infinite loop.

Allen

---

<div class="post-metadata">

**Author:** ![PKHG](https://blenderartists.org/user_avatar/blenderartists.org/pkhg/32/11096_2.png) [@PKHG](https://blenderartists.org/u/PKHG)\
**Post date:** [July 20, 2011, 10:01pm UTC](https://blenderartists.org/t/ivygen-generating-ivy-in-blender-updated-2-aug-2011/513787/11 "2011-07-20T22:01:47Z")

</div>

Me too,  
Yes, we are looking for it , so wait some time, will be removed …  
Peter

---

<div class="post-metadata">

**Author:** ![TrumanBlending](https://blenderartists.org/letter_avatar_proxy/v4/letter/t/ea5d25/32.png) [@TrumanBlending](https://blenderartists.org/u/TrumanBlending)\
**Post date:** [July 20, 2011, 11:06pm UTC](https://blenderartists.org/t/ivygen-generating-ivy-in-blender-updated-2-aug-2011/513787/12 "2011-07-20T23:06:28Z")

</div>

Hi All,

Thanks for the feedback and an update has been made to hopefully fix this. I believe the infinite loop problems were most likely caused by the starting point being too far from the surface or exactly on the surface. Let me know if the update helps. Also please note that “Gravity Weight” should not be set to 0. This will be fixed soon.

Cheers,  
Truman

---

<div class="post-metadata">

**Author:** ![TrumanBlending](https://blenderartists.org/letter_avatar_proxy/v4/letter/t/ea5d25/32.png) [@TrumanBlending](https://blenderartists.org/u/TrumanBlending)\
**Post date:** [July 20, 2011, 11:42pm UTC](https://blenderartists.org/t/ivygen-generating-ivy-in-blender-updated-2-aug-2011/513787/13 "2011-07-20T23:42:24Z")

</div>

Here’s a fantastic image from mfoxdogg:

 ![](https://blenderartists.org/uploads/default/original/3X/6/c/6ce386696b8b7b3f6e943950414d93a111bb70d8.jpg)  

Cheers,  
Truman

---

<div class="post-metadata">

**Author:** ![PKHG](https://blenderartists.org/user_avatar/blenderartists.org/pkhg/32/11096_2.png) [@PKHG](https://blenderartists.org/u/PKHG)\
**Post date:** [July 21, 2011, 5:56am UTC](https://blenderartists.org/t/ivygen-generating-ivy-in-blender-updated-2-aug-2011/513787/14 "2011-07-21T05:56:25Z")

</div>

And here with the latest version generated:  
 ![http://www.petergragert.info/pmwiki/uploads/Ivy/ivy2.png](http://www.petergragert.info/pmwiki/uploads/Ivy/ivy2.png)

---

<div class="post-metadata">

**Author:** ![DrBouvierLeduc](https://blenderartists.org/user_avatar/blenderartists.org/drbouvierleduc/32/2729_2.png) [@DrBouvierLeduc](https://blenderartists.org/u/DrBouvierLeduc)\
**Post date:** [July 21, 2011, 6:02am UTC](https://blenderartists.org/t/ivygen-generating-ivy-in-blender-updated-2-aug-2011/513787/15 "2011-07-21T06:02:08Z")

</div>

Not sure if this is a bug : when I launch this addon via the search panel -\> IvyGen, the popup appears, but when I click “ok” nothing happens.  
When I use add -\> curve -\> Ivy, it works fine though.

---

<div class="post-metadata">

**Author:** ![Atom](https://blenderartists.org/user_avatar/blenderartists.org/atom/32/2832_2.png) [@Atom](https://blenderartists.org/u/Atom)\
**Post date:** [July 21, 2011, 6:17am UTC](https://blenderartists.org/t/ivygen-generating-ivy-in-blender-updated-2-aug-2011/513787/16 "2011-07-21T06:17:05Z")

</div>

Ah!

The 3D Cursor controls the starting point. I missed that. Now I am getting output.

Presets would be nice. Like how do I make a longer, less dense ivy that will render quickly?

### Attachments

![](https://blenderartists.org/uploads/default/original/3X/6/1/6132db173e251293cab818b4f5db25f360f97c46.jpg)

---

<div class="post-metadata">

**Author:** ![PKHG](https://blenderartists.org/user_avatar/blenderartists.org/pkhg/32/11096_2.png) [@PKHG](https://blenderartists.org/u/PKHG)\
**Post date:** [July 21, 2011, 8:43am UTC](https://blenderartists.org/t/ivygen-generating-ivy-in-blender-updated-2-aug-2011/513787/17 "2011-07-21T08:43:57Z")

</div>

Investigating ourself!  
The basis is not from truman or pkhg, only ‘adjusted’ to the newest version

Here is ‘my’ test version [https://svn.blender.org/svnroot/bf-extensions/branches/ivygen/pkhg\_ivy/](https://svn.blender.org/svnroot/bf-extensions/branches/ivygen/pkhg_ivy/)  
With menu panel in the toolshelf of View3D to see effects of changing parameters! (and a time limitation is build in to prevent an infinite loop)  
EDIT  
Still available but use the link TrumanBlending refers to (22-7-2011), is THE version.

---

<div class="post-metadata">

**Author:** ![TrumanBlending](https://blenderartists.org/letter_avatar_proxy/v4/letter/t/ea5d25/32.png) [@TrumanBlending](https://blenderartists.org/u/TrumanBlending)\
**Post date:** [July 21, 2011, 11:47pm UTC](https://blenderartists.org/t/ivygen-generating-ivy-in-blender-updated-2-aug-2011/513787/18 "2011-07-21T23:47:14Z")

</div>

Hi all,

After some extensive changes, version 0.0.2 is now available. See the first post for download link. Changes include:

- Correct checking for ivy continued growth
- The addition of a panel to change properties and a button to grow the ivy
- Notifications in the console of generation progress
- Faster leaf generation
- Different defaults for (hopefully) faster generation

Cheers,  
Truman

---

<div class="post-metadata">

**Author:** ![Atom](https://blenderartists.org/user_avatar/blenderartists.org/atom/32/2832_2.png) [@Atom](https://blenderartists.org/u/Atom)\
**Post date:** [July 22, 2011, 5:55am UTC](https://blenderartists.org/t/ivygen-generating-ivy-in-blender-updated-2-aug-2011/513787/19 "2011-07-22T05:55:56Z")

</div>

Version 0.02 seems to have some problems. I pulled the script down and pasted it into a text window. When I run the script it no longer appears in the View 3D/Add/Curves menu, like the previous version did. So I pressed space bar and typed ‘ivy’ in the search box and it did show up. I assume as an operator because when I clicked on it in the search box it simply ran without offering up any chance to change or set parameters.

---

<div class="post-metadata">

**Author:** ![TrumanBlending](https://blenderartists.org/letter_avatar_proxy/v4/letter/t/ea5d25/32.png) [@TrumanBlending](https://blenderartists.org/u/TrumanBlending)\
**Post date:** [July 22, 2011, 10:26am UTC](https://blenderartists.org/t/ivygen-generating-ivy-in-blender-updated-2-aug-2011/513787/20 "2011-07-22T10:26:00Z")

</div>

Atom,

My apologies for not updating the instructions for using the script. Please see the first post for updated steps.

Cheers,  
Truman

[Next page](https://blenderartists.org/t/ivygen-generating-ivy-in-blender-updated-2-aug-2011/513787.md?page=2)
