Pete L

peteski

About Me

Expertise
Indie Gamedev
Location
Australia

Connect

Recent Forum Posts

Possible to edit multiple objects at same time? May 21, 2020, 7:05 p.m.

You can actually edit multiple sop nodes at once but it's something that is particularly easy. No idea why because it's really handy.

Here's my toolbar for that in case anyone is interested -
#Get all nodes under the current selection
ChildSOPs = []
for node in hou.selectedNodes():
    for child in node.allSubChildren():
        ChildSOPs.append(child)
        
#Make a list of unique types
seen = set()
UniqueSOPs = []
UniqueSOPsSorted = []
for SOP in ChildSOPs:
    if SOP.type().name() not in seen:
        UniqueSOPs.append(str(SOP.type().name()))
        seen.add(SOP.type().name())

#Choose the node type you want to edit
UniqueSOPsSorted = sorted(UniqueSOPs,key=str.lower)
input = hou.ui.selectFromList(UniqueSOPsSorted, message="Select Node Type!")
if (len(input) == 0):
    print "Cancelled"
else:        
    #Multi Select the nodes!
    for SOP in ChildSOPs:
        if (UniqueSOPsSorted[input[0]] == SOP.type().name()):
            SOP.setSelected(True,False)

Unity Engine and new Unity prefabs Jan. 28, 2020, 5:49 p.m.

Hey thanks Seelan,

Ahh, it's a shame to hear that it could be a bit of a headache

I ran into the issue when I started using HDA's to generate UI elements for the game, some of them were embedded in prefabs and bad things started to happen. I might have to look into using the bake options in those cases which is fine but not quite as nice as just having them right there in the scene.

I reckon you should keep prefabs on your radar though as they are a big improvement in Unity and I'm sure they'll only be used more and more.

P.

Unity Engine and new Unity prefabs Jan. 25, 2020, 5:14 p.m.

Hi there,

Just wondering if there are any plans to get Houdini engine working with the new prefab system in Unity?

Thanks,
Pete