Tips-Tricks: How to create several GFEmitters at the same time.

Hi all,

when we are making a scene with HYBRIDO, only we can add a GridFluidEmitter per object. I put a little script to add a GridFluidEmitter for all selected objects if they are of the TYPE_OBJECT.

nodes = scene.getSelectedNodes()
gr = scene.addGroup()
name_gr = gr.setName("Grid_Fluid_Emiters")

for node in nodes:
	if (node.getType() == TYPE_OBJECT):
		name= node.getName()
		gfdE = scene.add_GB_Emitter()
		gfdE.setParameter("Object", name)
		gfdE.setParameter("Stream", True)
		gfdE.setParameter("Initial speed", 2.0)
		gr.add(gfdE.getName()) 

luisM.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s