Clayton Krause


About Me

Not Specified
Not Specified


Recent Forum Posts

Pivot parameter issue June 18, 2018, 1:51 p.m.

Any options to handle these offsets without making a new geo type container and merging that you know of? I'm searching for a way to completely bake in and delete these offset parameters while maintaining the original geo container object.

Thank you,

Extract embedded files from HDA April 23, 2018, 4:43 p.m.

you'll need to use Binary:
section_file = file(file_name, "wb")

Thank you for that! I wouldn't of picked up on that being the issue for a long while…

Alright gang, thank you for all the help! I try to ask stupid beginner questions sparingly and look through the docs / research before asking as best as I can! I'm just getting familiar with HOM coming from an intermediate Python background (I say intermediate because I've used a lambda function before, lawl).

Anyways, thank you for your time! Appreciate all the help here.

Extract embedded files from HDA April 23, 2018, 3:59 p.m.

Alright, I'm slowly figuring this out with all of your help. I was a bit confused on the syntax of it all, but here is what I have going so far… “saveSectionToFile” is from the docs..

def saveSectionToFile(section, file_name):
    '''Given a section, save it to a file.'''
    section_file = file(file_name, "w")

t = hou.node('/obj/hdaObj')
td = t.type().definition()
if td.hasSection('kittens.jpg'):
	saveSectionToFile(td.sections().get('kittens.jpg'), 'C:/Users/clayton.krause/

Attached is the original jpg as well as the extracted. The original comes in at 50.6 KB, the extracted at 50.8 KB. The original isn't opening up as a jpg picture file should open up.

If anyone would mind explaining to me why the extracted jpg picture isn't opening up, that would help out a lot. I tried all the 3 compression types without any success-


Thank you all for any help in getting me to understand this better.

EDIT: I'd like to add that Photoshop posts with the following warning message when attempting to open the kittensExtracted.jpg

“Could not complete your request because an invalid DQT JPEG segment QTable number is found (it must be < 4)”