Created by: zeffii
- add snlite helper
vectorize
(from sverchok.utils.snlite_utils import vectorize
) - add optional injection of a variable named
parameters
that is a list of all named inputs. meaning, if you had 3 inputs namedradius, control1, width
, then parameters would be a wrapped list of those variables, effectively the same as `parameters = [radius, control1, width].
that can be written as this now.
"""
in petals s d=8 n=1
in innerradius s d=0.5 n=1
in outerradius s d=1.0 n=1
in petalwidth s d=2.0 n=1
out points v
out faces s
"""
from add_curve_extra_objects.add_curve_aceous_galore import FlowerCurve
from sverchok.utils.snlite_utils import vectorize
params = vectorize(parameters)
points = [FlowerCurve(*param_set) for param_set in zip(*params)]
faces = [[list(range(len(n)))] for n in points]
the parameters
variable is injected ( if the tickbox is enabled in the side bar for snlite )
and the vectorize
function is part of the snlite helper library now.