rfm2  22.0
A python-based rewrite of RenderMan for Maya
rfm2.vp.pxr_light.VP2LightDesc Class Reference
+ Inheritance diagram for rfm2.vp.pxr_light.VP2LightDesc:
+ Collaboration diagram for rfm2.vp.pxr_light.VP2LightDesc:

Public Member Functions

def __init__ (self, jdict)
 
def num_primitives (self)
 
def num_instances (self, prim_idx)
 
def primitive_id (self, prim_idx)
 
def prim_method_name (self, prim_idx)
 
def prim_vertices (self, prim_idx)
 
def prim_vertices_count (self, prim_idx)
 
def prim_uvs (self, prim_idx)
 
def prim_kwargs (self, prim_idx)
 
def prim_is_textured (self, prim_idx)
 
def prim_is_static (self, prim_idx)
 
def dyn_param_dict (self, prim_idx)
 

Public Attributes

 data
 
 geo_builders
 
 input_changes_topology
 
 shading_params
 

Detailed Description

class containing a number of primitive builders and providing a unified
interface.

Constructor & Destructor Documentation

◆ __init__()

def rfm2.vp.pxr_light.VP2LightDesc.__init__ (   self,
  jdict 
)

Member Function Documentation

◆ dyn_param_dict()

def rfm2.vp.pxr_light.VP2LightDesc.dyn_param_dict (   self,
  prim_idx 
)
+ Here is the caller graph for this function:

◆ num_instances()

def rfm2.vp.pxr_light.VP2LightDesc.num_instances (   self,
  prim_idx 
)
Return the number of instances for a given primitive

◆ num_primitives()

def rfm2.vp.pxr_light.VP2LightDesc.num_primitives (   self)
Returns the number of drawing primitives defined for this object.

◆ prim_is_static()

def rfm2.vp.pxr_light.VP2LightDesc.prim_is_static (   self,
  prim_idx 
)

◆ prim_is_textured()

def rfm2.vp.pxr_light.VP2LightDesc.prim_is_textured (   self,
  prim_idx 
)

◆ prim_kwargs()

def rfm2.vp.pxr_light.VP2LightDesc.prim_kwargs (   self,
  prim_idx 
)
Returns a given primitive's arguments if its building method is not
"vertexArray". Otherwise, returns None.

◆ prim_method_name()

def rfm2.vp.pxr_light.VP2LightDesc.prim_method_name (   self,
  prim_idx 
)
+ Here is the call graph for this function:

◆ prim_uvs()

def rfm2.vp.pxr_light.VP2LightDesc.prim_uvs (   self,
  prim_idx 
)
Returns the UVs of a given primitive as an array.
UVs are encoded as [u, v].

◆ prim_vertices()

def rfm2.vp.pxr_light.VP2LightDesc.prim_vertices (   self,
  prim_idx 
)
Returns the vertices of a given primitive as an array.
Vertices are encoded as [x, y, z].

◆ prim_vertices_count()

def rfm2.vp.pxr_light.VP2LightDesc.prim_vertices_count (   self,
  prim_idx 
)
Returns the number of vertices for a given primitive.

◆ primitive_id()

def rfm2.vp.pxr_light.VP2LightDesc.primitive_id (   self,
  prim_idx 
)
Return the id/name of a given primitive as a str.
+ Here is the call graph for this function:

Member Data Documentation

◆ data

rfm2.vp.pxr_light.VP2LightDesc.data

◆ geo_builders

rfm2.vp.pxr_light.VP2LightDesc.geo_builders

◆ input_changes_topology

rfm2.vp.pxr_light.VP2LightDesc.input_changes_topology

◆ shading_params

rfm2.vp.pxr_light.VP2LightDesc.shading_params

The documentation for this class was generated from the following file: