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

Daniel Salazar - 3Developer.com zanqdo at gmail.com
Sat Sep 3 10:18:06 CEST 2011


ok, agreed, maybe in the future we can just get some of those out somehow

i will be happy having noise in drivers ;)
cheers!

Daniel Salazar
3Developer.com



On Sat, Sep 3, 2011 at 2:14 AM, Campbell Barton <ideasman42 at gmail.com> wrote:
> Not sure this is a good idea, I don't mind math being imported
> directly because many of the terms are generic atan/cos/tan/sqrt/floor
>
> There are a few less common ones: ldexp, log1p, copysign, lgamma for
> eg but this isn't bad enough for me to be motivated to break existing
> drivers and go through the hassle of deprecating them.
>
> On Sat, Sep 3, 2011 at 6:06 PM, Daniel Salazar - 3Developer.com
> <zanqdo at gmail.com> wrote:
>> sounds good, id suggest we do the same with math then, so it becomes
>> math.sin etc, we can keep direct access available for 2-3 releases as
>> deprecation time but it's just the right thing
>>
>> cheers
>> Daniel Salazar
>> 3Developer.com
>>
>>
>>
>> On Sat, Sep 3, 2011 at 2: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
>>>
>> _______________________________________________
>> Bf-committers mailing list
>> Bf-committers at blender.org
>> http://lists.blender.org/mailman/listinfo/bf-committers
>>
>
>
>
> --
> - Campbell
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>


More information about the Bf-committers mailing list