On 10/07/2017 at 12:19, xxxxxxxx wrote:
Hi,
I am trying to map noise to the Density channel of a Pyrocluster material. So far I think I am only applying the noise to the float value of the density channel, but not to the whole object. My guess is that I should try to get some values from the Particle Geometry which the material is assigned. Or I might be totally wrong. This is what I have so far:
import c4d
from c4d import gui
#Welcome to the world of Python
def main() :
mat = doc.SearchMaterial("MainCentral_01")
pnoise = c4d.utils.noise.SNoise(c4d.Vector(1,1,1))
mat[c4d.PS_DENSITY] = pnoise
c4d.EventAdd()
if __name__=='__main__':
main()
Thanks!