[Sidefx-houdini-list] Getting fluid field type using an expression

Michael O'Brien mobrien at pixar.com
Tue Apr 3 13:47:02 EDT 2012


In the sop land, each volume primitive is separate, and it's only a naming
convention and adhering to that convention that makes it a scalar versus a
vector. So, things that end in *.{x,y,z} are usually considered a vector. 

In dop land, it's up to the code in the micro solver to do the
interpretation. You could pull the record's detail in HOM and see how many
primitives are in it.


> -----Original Message-----
> From: sidefx-houdini-list-bounces at sidefx.com [mailto:sidefx-houdini-
> list-bounces at sidefx.com] On Behalf Of Pablo Giménez
> Sent: Tuesday, April 03, 2012 10:28 AM
> To: Houdini Mailing List
> Subject: [Sidefx-houdini-list] Getting fluid field type using an
> expression
> Hi all.
> 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
> or vector?
> Thanks.
> --
> Un saludo
> Best Regards
> Pablo Giménez
> _______________________________________________
> Sidefx-houdini-list mailing list
> Sidefx-houdini-list at sidefx.com
> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list

More information about the Sidefx-houdini-list mailing list