Hey,
weird problem:
we’ve got parent particles emitting child particles. But then we’re querying the parent particles position. Problem is - I THINK when the parent particle dies, the child particle is querying a particle that doesn’t exist anymore. So I get this error.
How should we go about checking if parentId exists? It’s getting late so I’m sure there’s an easy solution and I’m just ignoring the obvious.
Runtime Before Dynamics
// Variable declarations
float $childParentId = child_tendrils_0Shape1.parentId;
vector $pos = `particle -at position -id $childParentId -q parent_explode_01`;
child_tendrils_0Shape1.position = $pos + pbf_ctrl_01.childRandPosition;
Error
// Error: line 2: Could not find particle with id specified. Please check id value in the query command //
// Error: An execution error occurred in the runtime before dynamics expression for child_tendrils_0Shape1. //
Best,
-cw
