THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 02/07/2011 at 11:53, xxxxxxxx wrote:
Cinema 4D Version:
The seed argument when initializing a C4DNoise object doesn't have any effect.
On 20/09/2011 at 11:11, xxxxxxxx wrote:
Confirmed in C4D 12.048.
On 20/09/2011 at 11:23, xxxxxxxx wrote:
You can factor your seed value into the sample point's position as a workaround.
def randomVector(seed, time) :
seed += 1 #Ensure seed is not 0
noise = c4d.utils.noise.C4DNoise(12345)
x = noise.Noise(t=c4d.NOISE_NOISE,two_d=False, p=c4d.Vector(seed,0,0), time=time)
y = noise.Noise(t=c4d.NOISE_NOISE,two_d=False, p=c4d.Vector(0,seed,0), time=time)
z = noise.Noise(t=c4d.NOISE_NOISE,two_d=False, p=c4d.Vector(0,0,seed), time=time)
positive_vector = c4d.Vector(x, y, z)
signed_vector = (positive_vector - c4d.Vector(0.5) ) * 2