philip ballinger
ballinger500
About Me
EXPERTISE
VFX Artist
INDUSTRY
Film/TV
Connect
LOCATION
Germany
WEBSITE
Houdini Skills
Availability
Not Specified
Recent Forum Posts
texturing Aug. 29, 2020, 3:16 a.m.
wrote a few lines about texturing in lops/karma. plus some hda's to streamline that workflow -> blog [www.3demo.info]
Multiple selected nodes to /obj/geo/object merge July 1, 2019, 2:54 a.m.
yes. but the code searches for selected nodes, not the node where the button lives. like fetching itself and obj merge it…
Multiple selected nodes to /obj/geo/object merge June 30, 2019, 12:06 p.m.
thanks i was impatient and got help from a colleague…
that code works as a shelf tool. any idea how it could work on a button referencing itself into a geo container?
for each selection:
each selection into one geo container:
that code works as a shelf tool. any idea how it could work on a button referencing itself into a geo container?
for each selection:
import hou selected = hou.selectedNodes() root = hou.node("/obj") for node in selected: merge_name = node.parent().name() + "_" + node.name() container = root.createNode("geo", merge_name + "_extracted") merge = container.createNode("object_merge", "objm--" + merge_name) merge.parm("objpath1").set(node.path()) merge.parm("xformtype").set("local") container.moveToGoodPosition()
each selection into one geo container:
import hou selected = hou.selectedNodes() root = hou.node("/obj") container = root.createNode("geo", "extracted") merge = container.createNode("object_merge", "objm--") merge.parm("numobj").set(0) merge.parm("xformtype").set("local") for node in selected: i = merge.evalParm("numobj") + 1 current_path = ("objpath"+str(i)) merge.parm("numobj").set(i) merge.parm(current_path).set(node.path())