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

Version 1 Next »

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

The script prints out the names of all scene nodes:

 

fillObjects = scene.getSelectedNodes()

dyversoDomain = scene.add_DY_Domain()

dyversoEmitter = scene.add_DY_Emitter("Fill")

 

if (len(fillObjects) == 0):

scene.message("Select one object!")

 

else:

for node in fillObjects:

 

if (node.getType() == TYPE_OBJECT):

dyversoEmitter.setParameter("Object", node.getName())

node.setParameter("Volume mode", "Solid inside")

 

scene.removeGlobalLink(node)

scene.addExclusiveLink(dyversoDomain, dyversoEmitter)

 

 

nodeCopy = node.clone()

nodeCopy.setParameter("Volume mode", "Solid outside")

 

scene.reset()


  • No labels