Hey there,
I'm looking to turn a subnet into a HDA using python, but for some reason hou.Node.createDigitalAsset doesn't seem to work, also can't find any create digital asset command in the docs for H19.5, is there a new command to create HDAs using python?
Cheers
Edit: Found the command in the Houdini 17 Japanese docs, learned Japanese and translated it for you here:
Example: hou.node("/obj/geo1/subnet1/").createDigitalAsset(name=None, hda_file_name=None, description=None, min_num_inputs=None, max_num_inputs=None, compress_contents=False, comment=None, version=None, save_as_embedded=False, ignore_external_references=False, change_node_type=True, create_backup=True)
The createDigitalAsset function in Houdini Python allows you to create a digital asset from a node, typically used with subnet nodes. Here's a breakdown of its parameters:
name: Name of the new digital asset node type to define.
hda_file_name: Name of the HDA file where Houdini saves the digital asset. If None, Houdini uses $HOME/houdiniX.Y/hda/OPcustom.otl.
description: Name displayed in the Tab menu. If None, Houdini uses a default description.
min_num_inputs: Minimum number of inputs required for instances of the digital asset.
max_num_inputs: Maximum number of input connectors available for instances of the digital asset.
compress_contents: Whether to compress the contents of this digital asset in the HDA file.
comment: User-defined comment string.
version: User-defined version string.
save_as_embedded: Whether to save the digital asset definition in the HIP file instead of an HDA file. If True, Houdini ignores the hda_file_name parameter.
ignore_external_references: If True, Houdini does not warn about the digital asset referencing nodes outside itself.
change_node_type: Normally, Houdini changes the node to the new digital asset type. Setting this to False keeps the node unchanged.
create_backup: Creates a backup of the existing HDA file before modifying it.
What happened to hou.Node.createDigitalAsset?
1317 0 0-
- andehpandeh
- Member
- 28 posts
- Joined: March 2019
- Offline
-
- Quick Links
