Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The script activates the "WetDry Map" feature and the appropriate export resource for objects inside a group named "Objects":

 

Code Block
languagepy
textureResolution = 1024
filterLoops       = 1
filterStrength    = 0.1
pixelStrength     = 255
ageing            = 0.5
 
objectGroup = scene.getGroup("Objects")
groupNodes  = objectGroup.getNodes()
 
for entry in groupNodes:
	if (entry.getType() == TYPE_OBJECT):
		entry.setParameter("WetDry texture", True)
		entry.setParameter("@ Resolution", textureResolution)
		entry.setParameter("@ Filter loops #", filterLoops)
		entry.setParameter("@ Filter strength", filterStrength)
		entry.setParameter("@ Pixel strength", pixelStrength)
		entry.setParameter("@ Ageing", 

...

ageing)
 
		entry.activeExportResource(4, True)
		entry.activeExportData(True)