Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Py4D - C4DNoise seed

    Scheduled Pinned Locked Moved Bugs
    3 Posts 0 Posters 797 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          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   
          
          1 Reply Last reply Reply Quote 0
          • First post
            Last post