Sdr module#
Summary: The Sdr (Shader Definition Registry) is a specialized version of Ndr for Shaders.
Python bindings for libSdr
Classes:
- class pxr.Sdr.NodeContext#
- Attributes: - Displacement = 'displacement'#
 - DisplayFilter = 'displayFilter'#
 - Light = 'light'#
 - LightFilter = 'lightFilter'#
 - Pattern = 'pattern'#
 - PixelFilter = 'pixelFilter'#
 - SampleFilter = 'sampleFilter'#
 - Surface = 'surface'#
 - Volume = 'volume'#
 
- class pxr.Sdr.NodeMetadata#
- Attributes: - Category = 'category'#
 - Departments = 'departments'#
 - Help = 'help'#
 - ImplementationName = '__SDR__implementationName'#
 - Label = 'label'#
 - Pages = 'pages'#
 - Primvars = 'primvars'#
 - Role = 'role'#
 - SdrDefinitionNameFallbackPrefix = 'sdrDefinitionNameFallbackPrefix'#
 - SdrUsdEncodingVersion = 'sdrUsdEncodingVersion'#
 - Target = '__SDR__target'#
 
- class pxr.Sdr.NodeRole#
- Attributes: - Field = 'field'#
 - Math = 'math'#
 - Primvar = 'primvar'#
 - Texture = 'texture'#
 
- class pxr.Sdr.PropertyMetadata#
- Attributes: - Colorspace = '__SDR__colorspace'#
 - Connectable = 'connectable'#
 - DefaultInput = '__SDR__defaultinput'#
 - Help = 'help'#
 - Hints = 'hints'#
 - ImplementationName = '__SDR__implementationName'#
 - IsAssetIdentifier = '__SDR__isAssetIdentifier'#
 - IsDynamicArray = 'isDynamicArray'#
 - Label = 'label'#
 - Options = 'options'#
 - Page = 'page'#
 - RenderType = 'renderType'#
 - Role = 'role'#
 - SdrUsdDefinitionType = 'sdrUsdDefinitionType'#
 - Tag = 'tag'#
 - Target = '__SDR__target'#
 - ValidConnectionTypes = 'validConnectionTypes'#
 - VstructConditionalExpr = 'vstructConditionalExpr'#
 - VstructMemberName = 'vstructMemberName'#
 - VstructMemberOf = 'vstructMemberOf'#
 - Widget = 'widget'#
 
- class pxr.Sdr.PropertyTypes#
- Attributes: - Color = 'color'#
 - Color4 = 'color4'#
 - Float = 'float'#
 - Int = 'int'#
 - Matrix = 'matrix'#
 - Normal = 'normal'#
 - Point = 'point'#
 - String = 'string'#
 - Struct = 'struct'#
 - Terminal = 'terminal'#
 - Unknown = 'unknown'#
 - Vector = 'vector'#
 - Vstruct = 'vstruct'#
 
- class pxr.Sdr.Registry#
- Methods: - Attributes: - True if this object has expired, False otherwise. - GetShaderNodeByIdentifier()#
 - GetShaderNodeByIdentifierAndType()#
 - GetShaderNodeByName()#
 - GetShaderNodeByNameAndType()#
 - GetShaderNodeFromAsset()#
 - GetShaderNodeFromSourceCode()#
 - GetShaderNodesByFamily()#
 - GetShaderNodesByIdentifier()#
 - GetShaderNodesByName()#
 - property expired#
- True if this object has expired, False otherwise. 
 
- class pxr.Sdr.ShaderNode#
- Methods: - GetAdditionalPrimvarProperties()#
 - GetAllVstructNames()#
 - GetAssetIdentifierInputNames()#
 - GetCategory()#
 - GetDefaultInput()#
 - GetDepartments()#
 - GetHelp()#
 - GetImplementationName()#
 - GetLabel()#
 - GetPages()#
 - GetPrimvars()#
 - GetPropertyNamesForPage()#
 - GetRole()#
 - GetShaderInput()#
 - GetShaderOutput()#
 
- class pxr.Sdr.ShaderProperty#
- Methods: - GetDefaultValueAsSdfType()#
 - GetHelp()#
 - GetHints()#
 - GetImplementationName()#
 - GetLabel()#
 - GetOptions()#
 - GetPage()#
 - GetVStructConditionalExpr()#
 - GetVStructMemberName()#
 - GetVStructMemberOf()#
 - GetValidConnectionTypes()#
 - GetWidget()#
 - IsAssetIdentifier()#
 - IsDefaultInput()#
 - IsVStruct()#
 - IsVStructMember()#