Drew Parks

neonjunkyards

About Me

Expertise
Not Specified
Location
United States

Connect

Recent Forum Posts

HDA processor parameter referencing March 27, 2020, 8:19 p.m.

Hey Brandon, thank you for the info! That's exactly what I was looking for, and thank you for filing the RFE as well.

Examples are always welcome if you have them

HDA processor parameter referencing March 25, 2020, 6:54 p.m.

I have an object-level batch asset processing-type HDA with a TOP network inside that contains several sop-level HDA processors

I promoted all the necessary parameters from the HDAs themselves onto the top object-level asset so the user has control over everything, but I need to link the pdg HDA processors to those parameters as well

there doesnt seem to be any parameter references created when you hit ‘update HDA parameters’ on the hda processor, even when pointing to a template sop node. So far i've only been able to manually copy/paste relative reference each parameter manually, and the assets contain multiparms so that no longer works

On a normal HDA for instance you could use the ‘Import Settings’ toggle on a folder pointing to the template HDA, refresh the imports, and your good, but since the HDA processor is dynamically generating spare parameters for everything (and not all of them come across correct, things like buttons, hide/disable when etc don't link up perfectly), whats the preferred workflow here?

If its through the Filter HDA parameters window, I cant find any documentation on it, I tried checking enable expression but it just creates an empty python expression. Is the idea that you then fill in the expressions yourself, or how is that mean to work?

Finally, I remember reading somewhere you can control parameters using work item attributes, would you create an attribute that has the same name and type as the HDA parameter and it will pick it up automatically? or do you need to fill in all the HDA parameters manually with `@my_attrib` for it to work? Which again would be problematic due to the dynamic multiparms etc

Any help is appreciated!

Detecting unsaved changes in unlocked HDA instances March 24, 2020, 4:58 p.m.

I'm looking to write a python script that will scan the current hip file for unlocked HDAs of a certain criteria and detect if modifications have been made to them; i.e. the unlocked instance differs from its associated hda library file

I can easily detect if they are unlocked, but in the python docs I'm not finding any good way of analyzing the contents of the network, like an unsaved word document. For instance I would want the script to flag even having put an unconnected null down as unsaved changes

First thing that comes to mind would be to generate a hash/GUID and compare the two, but other than writing my own hash algorithm (and possibly storing it as user data?) I don't see any built-in way to do this in Houdini, and since the slightest changes in the HDA library file would would invalidate the hash I'm not super confident with that solution

any ideas are appreciated, thanks!