[Sidefx-houdini-list] Getting fluid field type using an expression
pablogipi at gmail.com
Tue Apr 3 13:28:28 EDT 2012
I am trying to use an expression to know if a field in a fluid object is
scalar or vector.
I got some more or less working using this:
strcmp("[0, 1, 2]", dopoptions(".", "fluid", chs("../../dstfield0"),
"primnum")) == 0
It is a ilittel bit clunky but works with some fields.
Problem is that it relies in the "primnum" option. This exists in vel,
density, temperature and fuel.
But not in others, like divergence or burn.
So somebody know any way using expression to know whether a field is scalar
More information about the Sidefx-houdini-list