I have posted the original question over on the grasshopper fourm, http://www.grasshopper3d.com/forum/topics/python-version-on-perlin-noise-how-to-evaluate-t
I guess the short version is, I don’t know an approach, in python, to “evaluate t”. As in, I have a domain of values, (in this case “noise” values), and I want to cycle(?) through the values based on some input parameter t (representing a place in time)? It’s literally a python recreation/knock off of guilio’s perlin noise component.
I"m just not sure where to start. Here is the code I have so far:
NOTE: REQUIRES: https://pypi.python.org/pypi/noise/ open perlin.py in rhino python editor or set path to module
import Rhino as r import perlin as p sn = p.SimplexNoise() pVals =  #remappedValues =  #def mapValues(values,srcMin,srcMax,targetMin,targetMax): # for v in values: # if srcMax-srcMin > 0: # rv = ((v-srcMin)/(srcMax-srcMin))*(targetMax-targetMin)+targetMin # else: # rv = (targetMin+targetMax)/2 # remappedValues.append(rv) for pt in pts: #trying to figure out how to implement t.....offset x/y/z scale somehow? if t < 0: noise = sn.noise3(pt.X*scl, pt.Y*scl, pt.Z*scl) else: noise = sn.noise3(pt.X*scl, pt.Y*scl, pt.Z*scl)#what's the approach? pVals.append(noise) #mapValues(pVals, min(pVals), max(pVals), -1, 1) b = pVals
If anyone has any ideas to point me in the right direction, it would be much appreciated. desired outcome shown below. Guilio’s version (evaluating t in blue, my “static” version in pink).