rfm2  22.0
A python-based rewrite of RenderMan for Maya
 All Classes Namespaces Files Functions Variables Pages
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__
 
def num_primitives
 
def num_instances
 
def primitive_id
 
def prim_method_name
 
def prim_vertices
 
def prim_vertices_count
 
def prim_uvs
 
def prim_kwargs
 
def prim_is_textured
 
def prim_is_static
 
def dyn_param_dict
 

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

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

Member Function Documentation

def rfm2.vp.pxr_light.VP2LightDesc.dyn_param_dict (   self,
  prim_idx 
)
def rfm2.vp.pxr_light.VP2LightDesc.num_instances (   self,
  prim_idx 
)
Return the number of instances for a given primitive
def rfm2.vp.pxr_light.VP2LightDesc.num_primitives (   self)
Returns the number of drawing primitives defined for this object.
def rfm2.vp.pxr_light.VP2LightDesc.prim_is_static (   self,
  prim_idx 
)
def rfm2.vp.pxr_light.VP2LightDesc.prim_is_textured (   self,
  prim_idx 
)
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.
def rfm2.vp.pxr_light.VP2LightDesc.prim_method_name (   self,
  prim_idx 
)
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].
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].
def rfm2.vp.pxr_light.VP2LightDesc.prim_vertices_count (   self,
  prim_idx 
)
Returns the number of vertices for a given primitive.
def rfm2.vp.pxr_light.VP2LightDesc.primitive_id (   self,
  prim_idx 
)
Return the id/name of a given primitive as a str.

Member Data Documentation

rfm2.vp.pxr_light.VP2LightDesc.data
rfm2.vp.pxr_light.VP2LightDesc.geo_builders
rfm2.vp.pxr_light.VP2LightDesc.input_changes_topology
rfm2.vp.pxr_light.VP2LightDesc.shading_params

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