elovikov
Also currently it's not that difficult to create your own geometry functions based on verbs and graph invokation.
Here's the example of such function based on animatrix approach (I think it's the fastest one).
The function in the session module and can be used in any script on geometry.
Thanks for the demo! May not be difficult but it's not quite clear for my yet
I've checked the
docs [
www.sidefx.com] and there's no mention, for example, of being able to set one's own verbs or set them in custom SOP HDAs. Is it possible? Also from testing not all sops have verbs, "polypath" and "convertline" didn't work for me. "'NoneType' object has no attribute 'execute'".
hou.sopNodeTypeCategory().nodeVerbs()
will state the existing ones.
I checked your scene and the session module has a long binary string describing a houdini file or a single subnet network? I've only seen binary data like HDA section "Contents.gz" .binaryContents().
How did you generate the binary string? This is what I tried with a subnet with animatrix setup inside:
subnet = hou.node('/obj/geo1/subnet1')
path = hou.text.expandString("$HOME/subnet")
subnet.parent().saveItemsToFile([subnet], path)
f = open(path, 'rb')
f.read()
but what comes out of f.read() is invalid in load(). I looked into .geometry().data() but that's binary data of the geometry not a graph.
If there's any documentation I should check to be able to replicate what you've did for other things?
Thanks