Howard Matthews

howiem

About Me

Expertise
Generalist
Location
United Kingdom

Connect

Recent Forum Posts

Adding paint sop capabilities to a HDA June 1, 2020, 2:03 a.m.

Gerardo Castellanos
I put this on my callback script (python)

hou.pwd().hdaModule().node(paint_zoneID).setSelected(True)
I got this error message

SyntaxError: ('invalid syntax', ('<stdin>', 1, 28, ‘hou.pwd().hdaModule().node(\xe2\x80\x9c./paint_zoneID\xe2\x80\x9d).setSelected(True)\n’))

I just got this error too Turns out it's the forum's fault - if you look carefully you'll see the quote marks in the snippet you cut and pasted are “smart quotes” - 66 and 99 - rather than good ole' fashioned code quotes. Delete them and retype them.

But besides that, I also had to remove the hdaModule() bit.

Depending on what your HDA needs to do, you probably need to move the display flag to your Paint SOP too, so my callback ended up looking like this:

hou.pwd().node("geo1/attribpaint2").setSelected(True);hou.pwd().node("geo1/attribpaint2").setDisplayFlag(True)

… plus I had to add a similar button to “finish” painting and move the Display flag back to the end of my network again.

How to draw text in the viewport regardless of viewer state? March 17, 2020, 9:06 a.m.

Cool. A TC/beats display may as well have its own pane you can put where you like, rather than being in the viewport, but this'll do me nicely until I get time to learn some Houdini-UI skillz

How to draw text in the viewport regardless of viewer state? March 16, 2020, 6:47 p.m.

Ha! That's spectacular. I'd never have guessed that existed… crikey, I'm going to be using that for all sorts of feedback now. Thanks!