This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import hou | |
| import husd.outputprocessor as base | |
| import os | |
| import time | |
| class AvalonPublish(base.OutputProcessor): | |
| def __init__(self): | |
| super(AvalonPublish, self).__init__() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| node = hou.pwd() | |
| stage = node.editableStage() | |
| # Add code to modify the stage. | |
| # Use drop down menu to select examples. | |
| from pxr import Usd, UsdGeom | |
| asset_root = '/ROOT' | |
| primvar_name = 'rset' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| node = hou.pwd() | |
| stage = node.editableStage() | |
| from pxr import Usd, UsdShade, Sdf | |
| source_node = node.parent().input(0) | |
| source_stage = source_node.stage() | |
| rule = hou.LopSelectionRule('%shadertype(arnold:image)') | |
| paths = rule.expandedPaths(stage=source_stage) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from pxr import Usd, UsdShade, Sdf | |
| from typing import Type | |
| import hou | |
| node = hou.pwd() | |
| stage = node.editableStage() | |
| class Shader_Mapping: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from pathlib import Path | |
| import argparse | |
| import matplotlib.pyplot as plt | |
| import time | |
| if __name__ == '__main__': | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument('root', type=str, help='Path to folder') | |
| parser.add_argument('ext', type=str, help='Extension name') | |
| parser.add_argument('num_step', type=int, help='Numbers part postion') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| _Pragma("opname fisheye_lens_vex"); | |
| _Pragma("oplabel \"Fisheye Lens VEX\""); | |
| _Pragma("hint x hidden"); | |
| _Pragma("hint y hidden"); | |
| _Pragma("hint P hidden"); | |
| _Pragma("hint I hidden"); | |
| _Pragma("hint valid hidden"); | |
| _Pragma("hint aspect hidden"); | |
| _Pragma("hint mask toggle"); |