Drew Parks

Neon Junkyards

About Me

Connect

LOCATION
United States
WEBSITE

Houdini Skills

Availability

Not Specified

Recent Forum Posts

geometry import TOP - evaluate sop attribute values April 27, 2020, 9:41 p.m.

I have a simple geometryimport top set to create work items for each primitive piece attribute from a sop path

This creates a primitiveattribs array containing the names of all the primitive attributes included in ‘copy attributes’ parameter

This all works fine, but how can I get the value of each of those primitive attributes (as they would appear in sops) and set them as work item
? I can only get the attribute name as a string, how would you go about getting the values and creating work item data from them?

If you set the piece attribute as a string, the piecevalue pdg attribute will contain the value of the string. How can I do that for all the other attributes?

Thanks

Working with HDAs that contain hou package python code Oct. 18, 2019, 5:07 a.m.

Hey Ken thanks so much for the info, the houdini command chain workflow is exactly what I was looking for, tested and works like a charm

Working with HDAs that contain hou package python code Sept. 21, 2019, 3:36 a.m.

From watching the PDG masterclass I understand its a bad idea to use hou module python code as its not thread-safe

However where does this restriction apply exactly, is it just for writing python processors etc in PDG, or is python in HDAs, python sops etc going to cause problems?


In a specific case I have a custom FBX import HDA that imports FBX files using the hou.hipFile module, creates materials on the fly (in an editable material network inside the HDA), and generally creates and deletes a lot of nodes during processing. Each HDA instance is only really meant to import 1 fbx file/hda, as it requires an actual file>import to generate materials, so until now ive written scripts to run this over a folder of files and generate an HDA per fbx file.


Is there any way to get this sort of setup to work with PDG? Can you physically create nodes with PDG, or is that not going to work? Will the HDA processor work with embedded python code, especially if it is trying to create/destroy geo, or is any hou module in HDAs not going to work at all?


Given that the HDA needs to physically create materials and store them in an HDA instance, I dont see how that could work the the HDA processor, but I'd really like to know what the limitations and options are here for all the above and working with hou python code in general. Thank you!