doppoptoolutils module

doppoptoolutils.addVortexFilaments(scriptargs)

Select geometry for vortex filaments, and then add a Source Filaments, POP Advect by Filaments, and Filament Solver to the simulation.

doppoptoolutils.applyGeoModifier(scriptargs, modifiernodetype, prompt=None, targetinput='vel')

Select a geometry and then a set of points to affect with that geometry, returning a tuple of the two. (node, geometry)

doppoptoolutils.applyModifier(scriptargs, modifiernodetype)

Select a set of points and apply a specified modifier to it, returning the modifier

doppoptoolutils.buildDopObjectMenu(node)

Builds a menu containing the names of the DOP objects in the simulation, which can be used for e.g. filtering collisions.

doppoptoolutils.buildGroupMenu(node)

Inspects this DOP node and returns a group menu suitable for the group script

doppoptoolutils.computePointSeparation(geo)

Compute a sensible point separation for the Grain Source node.

doppoptoolutils.createFireworksEmitter(scriptargs)

Select an position and emit fireworks from it.

doppoptoolutils.createLocationEmitter(scriptargs)

Select an position and emit points from it.

doppoptoolutils.createParticleSystem(name, forcepoints=False)
doppoptoolutils.createSandBox(scriptargs)

Select a grid and turn it into a layer of sand.

doppoptoolutils.createSandSource(scriptargs, style)

Select an object and turn it into a pile of sand.

doppoptoolutils.createSandSourceFromObject(origobj, style)

Giving an OBJ_Node builds a sand object.

doppoptoolutils.createSourceEmitter(scriptargs)

Select an object and emit points from it.

doppoptoolutils.dopPopGeometryInit(info, dopobjectnode, solvernode, objectnode, sopnode)

Specializes the DOP Object node initialization process for POP Objects created from a simple geometry selection. This creates a POP Object with a POP Shape Match force attached.

doppoptoolutils.dopPopParticleInit(info, dopobjectnode, solvernode, objectnode, sopnode)

Specializes the DOP Object node initialization process for POP Objects created from a POP Network selection.

doppoptoolutils.findOrCreateParticleSystem(name, forcepoints=False)

Tries to find an existing particle system in the current dop network, returns that if present. Otherwise creates and returns one of the given name

doppoptoolutils.findParticleSystem()

Tries to find an existing particle system in the current dop network. Returns the representative object if found.

doppoptoolutils.generateSelectionString(selection)

Generate a selection string from a selection. If everything is selected (e.g., all points, all primitives), then the “*” string is returned.

doppoptoolutils.linkInNode(node, solvernode, input)

Links the given node into the provided named input of the solver node. Will replace the Merge node if present.

doppoptoolutils.setupAutoFreeze(scriptargs)

Turns on auto-freezing for a solver.

doppoptoolutils.twoStepPointSelection(activepane)