[Sidefx-houdini-list] data type conversion
antoinedurr at gmail.com
Tue Mar 8 02:45:13 EST 2011
There are lots of geo file hacks you can do with the unix SOP.
Mostly I use perl -pe instead of sed, so that gives me access to the
rest of Perl. In ascii mode, you *literally* get a .geo file, which
is all ascii, and has a few lines of header, then come the point
attributes, then the points, then the prim attribute definitions,
then the primitives, then the groups, and finally the trailer. The
header of a .geo is almost identical to mouse-middle on a SOP. You
can do some pretty nifty group renaming with the unix SOP, or very
fancy renaming of any kind.
On Mar 7, 2011, at 4:00 PM, François Duchesneau wrote:
> No way, I didn't know we could do that. That's probably super fast.
> Are there other little trick like that you can do with this node? I
> guess you cannot manipulate the data itself since it's probably
> binary. How can we get access to how the header is formated, is it
> like a bgeo format?
>> Or, you could use the unix SOP in ascii mode:
>> sed 's/myData 3 float/myData 3 vector/'
> Sidefx-houdini-list mailing list
> Sidefx-houdini-list at sidefx.com
More information about the Sidefx-houdini-list