├── README.md └── ct_lightning_generator.c4d /README.md: -------------------------------------------------------------------------------- 1 | Lightning Generator for CINEMA 4D 2 | ====================== 3 | 4 | >A Python generator for creating lightning effects in CINEMA 4D. 5 | 6 | #[Download](https://github.com/CreativeTools/ct-lightning-generator/raw/master/ct_lightning_generator.c4d) 7 | 8 | ![Lightning Render](http://www.creativetools.se/blog_static/media/6843_veckans-ct-freebie:-blixtar-i-cinema-4d.jpg) 9 | 10 | ##File contents 11 | 12 | The C4D file contains a number of objects: 13 | * Sweep NURBS 14 | * Circle 15 | * CT Lightning Generator 16 | * Target 17 | * Source 18 | 19 | _CT Lightning Generator_ is the actual lightning generator, the others can be replaced by your own objects. 20 | _CT Lightning Generator_ generates a spline containing a segment for each "branch" in the lightning bolt. 21 | 22 | ##Settings 23 | The _CT Lightning Generator_ object has a number of settings in the _User Data_ tab. 24 | 25 | * Step size 26 | * The distance between the points in the spline. A smaller value creates more details while a larger walue will give the bolt a rougher look 27 | * Source Object 28 | * The object to use as the starting point for the lightning bolt. Note that it only uses the axis center of the object. 29 | * Target Object 30 | * The object to shoot the bolt towards. Just like with the source object, only the axis center of the object is used. 31 | * Branch Length 32 | * The distance the branches should be allowed to extend from the main bolt. 33 | * 2D 34 | * When checked the bolt will be "flat". This makes sure that the branches never look like they're overlapping. 35 | * Branches 36 | * The amount of branching from the main bolt. A low value will disable branches entirely. 37 | * Random Seed 38 | * Each random seed gives you a new variation of the bolt. Animate this to generate rapidly changing sparks. 39 | * Max Steps 40 | * The maximum number of steps the generator should take when generating the bolt. Raise this if the bolt does not reach the target object. Note that the generation time is proportial to the square of the number of steps, so be careful with this setting! 41 | 42 | ##CG News 43 | Visit the Creative Tools blog for your daily dose of CG news. 44 | ###[English](http://translate.google.com/translate?js=n&sl=auto&tl=en&u=http://www.creativetools.se/blog/) 45 | ###[Swedish](http://www.creativetools.se/blog/) 46 | -------------------------------------------------------------------------------- /ct_lightning_generator.c4d: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreativeTools/ct-lightning-generator/0a69eff02cc0bd206bc356803fa876f033576ba6/ct_lightning_generator.c4d --------------------------------------------------------------------------------