graphic:python:houdini

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
graphic:python:houdini [2023/05/31 09:06] – [HDA Operation (Houdini Digital Asset)] yinggraphic:python:houdini [2024/03/22 06:37] (current) – [HDA Operation (Houdini Digital Asset)] ying
Line 119: Line 119:
 </code> </code>
   * node > definition > all info related   * node > definition > all info related
 +
 +===== Simple hda operation =====
 +
 +  * lock hda node <code python>result_node.matchCurrentDefinition()</code>
 +  * unlock hda node (same like allow edit of content)<code python>
 +if result_node.isLockedHDA():
 +    result_node.allowEditingOfContents()
 +</code>
 +  * open type property dialog of a hda node <code python>hou.ui.openTypePropertiesDialog(result_node)</code>
 +
 +===== 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, self.namespace_branch if self.display_branch_in_label_enable else None)     - tablabel = constructVHDALabel(self.tablabel, self.namespace_branch if self.display_branch_in_label_enable else None)
-    -  
     - library_file_path = os.path.join(hou.text.expandString(self.library_dir), library_file)     - library_file_path = os.path.join(hou.text.expandString(self.library_dir), library_file)
-    - vhda_typename = constructVHDATypeName(namespace_author, +    - vhda_typename = constructVHDATypeName(namespace_author, namespace_branch, self.type_name, major_version, minor_version)
-                                                namespace_branch, +
-                                                self.type_name, +
-                                                major_version, +
-                                                minor_version) +
-    - ~~~~~~~~~+
     - 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>
  • graphic/python/houdini.txt
  • Last modified: 2024/03/22 06:37
  • by ying