[Bf-committers] noise module loaded in driver_namespace by default

Dan Eicher dan at trollwerks.org
Wed Sep 7 03:44:09 CEST 2011


On Sat, Sep 3, 2011 at 1:04 AM, Campbell Barton <ideasman42 at gmail.com> wrote:
> On Sat, Sep 3, 2011 at 5:27 PM, Daniel Salazar - 3Developer.com
> <zanqdo at gmail.com> wrote:
>> I want to add the fantastic noise module to driver_namespace by
>> default. After all, what good is an expression without noise! This
>> module adds the next awesome functions:
>>
>>          cell
>>          cell_vector
>>          distance_metrics
>>          fractal
>>          hetero_terrain
>>          hybrid_multi_fractal
>>          multi_fractal
>>          noise
>>          random
>>          random_unit_vector
>>          ridged_multi_fractal
>>          seed_set
>>          turbulence
>>          turbulence_vector
>>          types
>>          vector
>>          vl_vector
>>          voronoi
>>
>> this + the math module + frame (both already there) = expressions
>> useful for everyday tasks!
>>
>> Daniel Salazar
>> 3Developer.com
>
> I'm reluctant to import these directly because some of the names don't
> make a lot of sense on their own.
> - random: a python module
> - types: also a python module
> - seed_set: doesn't make sense to import this IMHO
> - vector: similar to mathutils.Vector
> - cell: not very meaningful on its own.
>
> Suggest we import noise but not its members, this way you have to type
> noise.random() rather than just random() but at least its clear whats
> being accessed.
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>

IIRC my original patch imported noise like is suggested, the code is
in there (from 2.4x) but commented out.

Dan


More information about the Bf-committers mailing list