MUniformParameterList specify the list of uniform shader parameters used by a hardware shader, allowing Maya to handle setting up the node and user interfaces to the data, the population and access of cached data, etc.
Constructor & Destructor Documentation
OpenMayaRender.MUniformParameterList.__init__
(
)
Initialize self. See help(type(self)) for accurate signature.
Member Function Documentation
OpenMayaRender.MUniformParameterList.__getitem__
(
)
Return self[key].
OpenMayaRender.MUniformParameterList.__len__
(
)
Return len(self).
OpenMayaRender.MUniformParameterList.__new__
(
)
static
Create and return a new object. See help(type) for accurate signature.
OpenMayaRender.MUniformParameterList.append
(
)
append(element) -> bool
Append a new parameter to this end of this list.
* element (MUniformParameter) - The new parameter to append
OpenMayaRender.MUniformParameterList.copy
(
)
copy(source) -> self
Copy data from source list.
* source (MUniformParameterList) - The source list to copy from
OpenMayaRender.MUniformParameterList.setElement
(
)
setElement(n, element) -> bool
Set the nth parameter in this list.
* n (int) - The index of the element to set
* element (MUniformParameter) - The value to set
OpenMayaRender.MUniformParameterList.setLength
(
)
setLength(length) -> bool
Set the number of parameters in this list. If this is greater than the current number of parameters in the list, the caller is responsible for setting the new parameters to valid values using setElement.
* length (int) - The number of parameters in this list.