Hi, I am looking for expression to automatically activate source volume node in DOP by input object(VDB, houdiniSDF). This is because sim is broken, if the sourceVolume set to collision but there is no SDF primitive.
my idea is that the inside of the node, sourcevolume > SOP solver(source_density)>objectMerge(fetch_density). After this node, I add primitiveWrangle:
if(@name == "density" || @name == "surface")
f@activeSwitch =1;
then I made float parameter(activation), and paste expression.
prim(".", "activeSwitch", 0)
After that, I plan to paste the parameter value to sourcevolume>activation. Then it should automatically set activation ON/OFF.
The wrangleVEX is working but prim's expression is not working. How can I fix it??