Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
graphic:python:houdini [2023/05/31 09:06] – [HDA Operation (Houdini Digital Asset)] ying | graphic:python:houdini [2024/03/22 06:37] (current) – [HDA Operation (Houdini Digital Asset)] ying | ||
---|---|---|---|
Line 119: | Line 119: | ||
</ | </ | ||
* node > definition > all info related | * node > definition > all info related | ||
+ | |||
+ | ===== Simple hda operation ===== | ||
+ | |||
+ | * lock hda node <code python> | ||
+ | * unlock hda node (same like allow edit of content)< | ||
+ | if result_node.isLockedHDA(): | ||
+ | result_node.allowEditingOfContents() | ||
+ | </ | ||
+ | * open type property dialog of a hda node <code python> | ||
+ | |||
+ | ===== Complex hda operation ===== | ||
+ | |||
+ | |||
* node info <code python> | * node info <code python> | ||
# node | # node | ||
Line 189: | Line 202: | ||
- library_file = self.getCorrectLibraryFile() | - library_file = self.getCorrectLibraryFile() | ||
- tablabel = constructVHDALabel(self.tablabel, | - tablabel = constructVHDALabel(self.tablabel, | ||
- | - | ||
- library_file_path = os.path.join(hou.text.expandString(self.library_dir), | - library_file_path = os.path.join(hou.text.expandString(self.library_dir), | ||
- | - vhda_typename = constructVHDATypeName(namespace_author, | + | - vhda_typename = constructVHDATypeName(namespace_author, |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | - ~~~~~~~~~ | + | |
- continue: alert deals with lib path file contains multi- definition | - continue: alert deals with lib path file contains multi- definition | ||
- new asset <code python> | - new asset <code python> |