Py4D - C4DNoise seed



  • 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:

    User Information:
    Cinema 4D Version:    
    Platform:      
    Language(s) :

    ---------
    The seed argument when initializing a C4DNoise object doesn't have any effect.



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 20/09/2011 at 11:11, xxxxxxxx wrote:

    Confirmed in C4D 12.048.



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    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   
      
        return signed_vector   
    

Log in to reply