Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Add this script to a "Batch Script" editor (F10) and execute it with Script > Run.

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

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", aging)
 
		entry.activeExportResource(4, True)
		entry.activeExportData(True)

  • No labels