VRay SDK for C#
Loading...
Searching...
No Matches
VRay.Plugins.TexSwitch Class Reference

Chooses from a list of other color textures based on which scene object is being shaded [gpuSupport=(none)] More...

Inherits VRay.Plugins.Plugin, VRay.Plugins.IPluginRef< TexSwitch >, and VRay.Plugins.ITexturePluginCategory.

Public Member Functions

object Get_DefaultTexture (double time)
 Gets the value of TexSwitch.DefaultTexture More...
 
IList< object > Get_Nodes (double time)
 Gets the value of TexSwitch.Nodes More...
 
IList< object > Get_Textures (double time)
 Gets the value of TexSwitch.Textures More...
 
bool Set_DefaultTexture (object val, double time)
 Sets a value to TexSwitch.DefaultTexture More...
 
bool Set_Nodes (IList< object > val, double time)
 Sets a value to TexSwitch.Nodes More...
 
bool Set_Textures (IList< object > val, double time)
 Sets a value to TexSwitch.Textures More...
 
- Public Member Functions inherited from VRay.Plugins.Plugin
PluginCategories GetCategories ()
 Gets all the plugin categories this plugin belongs to, such as being a Light or a Material, etc.
 
long GetIntegerID ()
 Returns the ID of the plugin instance. The ID is unique per scene contained in a VRayRenderer instance. Can be used as a hash value.
 
double[] GetKeyframeTimes (string propertyName)
 Return an array of keyframe times if the property contains animated values or an empty array if the property is not animated. More...
 
PluginMeta GetMeta ()
 Gets a plugin meta object.
 
string GetName ()
 Gets the name of the plugin.
 
PropertyRuntimeMeta GetPropertyRuntimeMeta (string propertyName)
 Gets an object with runtime meta information about the property. More...
 
VRayRenderer GetRenderer ()
 Gets a reference to the renderer which created the plugin.
 
string Gettype ()
 Gets the type of the plugin. More...
 
object GetValue (string propertyName)
 Gets the value of the specified property as a generic object. More...
 
object GetValue (string propertyName, double time)
 Gets the value of the specified property as a generic object. More...
 
AColor GetValueAsAColor (string propertyName)
 Gets the value of the specified property if it is of type AColor. Otherwise an exception is thrown. More...
 
AColor GetValueAsAColor (string propertyName, double time)
 Gets the value of the specified property if it is of type AColor. Otherwise an exception is thrown. More...
 
bool GetValueAsBool (string propertyName)
 Gets the value of the specified property if it is of type bool. Otherwise an exception is thrown. More...
 
bool GetValueAsBool (string propertyName, double time)
 Gets the value of the specified property if it is of type bool. Otherwise an exception is thrown. More...
 
Color GetValueAsColor (string propertyName)
 Gets the value of the specified property if it is of type Color. Otherwise an exception is thrown. More...
 
Color GetValueAsColor (string propertyName, double time)
 Gets the value of the specified property if it is of type Color. Otherwise an exception is thrown. More...
 
double GetValueAsDouble (string propertyName)
 Gets the value of the specified property if it is of type double. Otherwise an exception is thrown. More...
 
double GetValueAsDouble (string propertyName, double time)
 Gets the value of the specified property if it is of type double. Otherwise an exception is thrown. More...
 
float GetValueAsFloat (string propertyName)
 Gets the value of the specified property if it is of type float. Otherwise an exception is thrown. More...
 
float GetValueAsFloat (string propertyName, double time)
 Gets the value of the specified property if it is of type float. Otherwise an exception is thrown. More...
 
int GetValueAsInt (string propertyName)
 Gets the value of the specified property if it is of type int. Otherwise an exception is thrown. More...
 
int GetValueAsInt (string propertyName, double time)
 Gets the value of the specified property if it is of type int. Otherwise an exception is thrown. More...
 
IList GetValueAsList (string propertyName)
 Gets the value of the specified property if it is a list. (This simply casts the result of GetValue() to IList. More...
 
IList GetValueAsList (string propertyName, double time)
 Gets the value of the specified property if it is a list. (This simply casts the result of GetValue() to IList. More...
 
IList< T > GetValueAsList< T > (string propertyName)
 Gets the value of the specified property if it is of a list type. More...
 
IList< T > GetValueAsList< T > (string propertyName, double time)
 Gets the value of the specified property if it is of a list type. More...
 
Matrix GetValueAsMatrix (string propertyName)
 Gets the value of the specified property if it is of type Matrix. Otherwise an exception is thrown. More...
 
Matrix GetValueAsMatrix (string propertyName, double time)
 Gets the value of the specified property if it is of type Matrix. Otherwise an exception is thrown. More...
 
IPluginRef GetValueAsPluginRef (string propertyName)
 Gets the value of the specified property if it is of type Plugin/PluginRef. More...
 
IPluginRef GetValueAsPluginRef (string propertyName, double time)
 Gets the value of the specified property if it is of type Plugin/PluginRef. More...
 
string GetValueAsString (string propertyName)
 Gets the string representation of the specified plugin property value. More...
 
string GetValueAsString (string propertyName, double time)
 Gets the string representation of the specified plugin property value. More...
 
Transform GetValueAsTransform (string propertyName)
 Gets the value of the specified property if it is of type Transform. Otherwise an exception is thrown. More...
 
Transform GetValueAsTransform (string propertyName, double time)
 Gets the value of the specified property if it is of type Transform. Otherwise an exception is thrown. More...
 
Vector GetValueAsVector (string propertyName)
 Gets the value of the specified property if it is of type Vector. Otherwise an exception is thrown. More...
 
Vector GetValueAsVector (string propertyName, double time)
 Gets the value of the specified property if it is of type Vector. Otherwise an exception is thrown. More...
 
bool IsPropertyAnimated (string propertyName)
 Returns whether the current value of the property is animated or not. More...
 
bool IsValid ()
 Check whether this object contains a valid reference to a V-Ray plugin instance. (The reference may become invalid if the actual plugin it refers to has been deleted.) More...
 
bool SetName (string newName)
 Sets a new name of the plugin. More...
 
bool SetValue (string propertyName, AColor value)
 Sets the value of the specified property as AColor. More...
 
bool SetValue (string propertyName, AColor value, double time)
 Sets the value of the specified property as AColor. More...
 
bool SetValue (string propertyName, bool value)
 Sets the value of the specified property as bool. More...
 
bool SetValue (string propertyName, bool value, double time)
 Sets the value of the specified property as bool. More...
 
bool SetValue (string propertyName, Color value)
 Sets the value of the specified property as Color. More...
 
bool SetValue (string propertyName, Color value, double time)
 Sets the value of the specified property as Color. More...
 
bool SetValue (string propertyName, Color[] value)
 Sets the value of the specified property as an array of Colors. More...
 
bool SetValue (string propertyName, Color[] value, double time)
 Sets the value of the specified property as an array of Colors. More...
 
bool SetValue (string propertyName, Color[] value, int startIndex, int size)
 Sets the value of the specified property as a slice of a Color array. More...
 
bool SetValue (string propertyName, Color[] value, int startIndex, int size, double time)
 Sets the value of the specified property as a slice of a Color array. More...
 
bool SetValue (string propertyName, double value)
 Sets the value of the specified property as double. More...
 
bool SetValue (string propertyName, double value, double time)
 Sets the value of the specified property as double. More...
 
bool SetValue (string propertyName, double[] value)
 Sets the value of the specified property as an array of doubles. More...
 
bool SetValue (string propertyName, double[] value, double time)
 Sets the value of the specified property as an array of doubles. More...
 
bool SetValue (string propertyName, double[] value, int startIndex, int size)
 Sets the value of the specified property as a slice of a double array. More...
 
bool SetValue (string propertyName, double[] value, int startIndex, int size, double time)
 Sets the value of the specified property as a slice of a double array. More...
 
bool SetValue (string propertyName, float value)
 Sets the value of the specified property as float. More...
 
bool SetValue (string propertyName, float value, double time)
 Sets the value of the specified property as float. More...
 
bool SetValue (string propertyName, float[] value)
 Sets the value of the specified property as an array of floats. More...
 
bool SetValue (string propertyName, float[] value, double time)
 Sets the value of the specified property as an array of floats. More...
 
bool SetValue (string propertyName, float[] value, int startIndex, int size)
 Sets the value of the specified property as a slice of a float array. More...
 
bool SetValue (string propertyName, float[] value, int startIndex, int size, double time)
 Sets the value of the specified property as a slice of a float array. More...
 
bool SetValue (string propertyName, IList< Color > value)
 Sets the value of the specified property as a list of Colors. More...
 
bool SetValue (string propertyName, IList< Color > value, double time)
 Sets the value of the specified property as a list of Colors. More...
 
bool SetValue (string propertyName, IList< double > value)
 Sets the value of the specified property as alist of doubles. More...
 
bool SetValue (string propertyName, IList< double > value, double time)
 Sets the value of the specified property as alist of doubles. More...
 
bool SetValue (string propertyName, IList< float > value)
 Sets the value of the specified property as a list of floats. More...
 
bool SetValue (string propertyName, IList< float > value, double time)
 Sets the value of the specified property as a list of floats. More...
 
bool SetValue (string propertyName, IList< int > value)
 Sets the value of the specified property as a list of ints. More...
 
bool SetValue (string propertyName, IList< int > value, double time)
 Sets the value of the specified property as a list of ints. More...
 
bool SetValue (string propertyName, IList< Vector > value)
 Sets the value of the specified property as a list of Vectors. More...
 
bool SetValue (string propertyName, IList< Vector > value, double time)
 Sets the value of the specified property as a list of Vectors. More...
 
bool SetValue (string propertyName, int value)
 Sets the value of the specified property as int. More...
 
bool SetValue (string propertyName, int value, double time)
 Sets the value of the specified property as int. More...
 
bool SetValue (string propertyName, int[] value)
 Sets the value of the specified property as an array of ints. More...
 
bool SetValue (string propertyName, int[] value, double time)
 Sets the value of the specified property as an array of ints. More...
 
bool SetValue (string propertyName, int[] value, int startIndex, int size)
 Sets the value of the specified property as a slice of an int array. More...
 
bool SetValue (string propertyName, int[] value, int startIndex, int size, double time)
 Sets the value of the specified property as a slice of an int array. More...
 
bool SetValue (string propertyName, IPluginRef value)
 Sets the value of the specified property as Plugin or Plugin's output parameter. More...
 
bool SetValue (string propertyName, IPluginRef value, double time)
 Sets the value of the specified property as Plugin or Plugin's output parameter. More...
 
bool SetValue (string propertyName, Matrix value)
 Sets the value of the specified property as Matrix. More...
 
bool SetValue (string propertyName, Matrix value, double time)
 Sets the value of the specified property as Matrix. More...
 
bool SetValue (string propertyName, object value)
 Sets the value of the specified property as a generic object. The type is deduced internally. More...
 
bool SetValue (string propertyName, object value, double time)
 Sets the value of the specified property as a generic object. The type is deduced internally. More...
 
bool SetValue (string propertyName, Plugin outPlugin, string outPropertyName)
 Sets the value of the specified property as a Plugin's output parameter. More...
 
bool SetValue (string propertyName, Plugin outPlugin, string outPropertyName, double time)
 Sets the value of the specified property as a Plugin's output parameter. More...
 
bool SetValue (string propertyName, Plugin value)
 Sets the value of the specified property as Plugin. More...
 
bool SetValue (string propertyName, Plugin value, double time)
 Sets the value of the specified property as Plugin. More...
 
bool SetValue (string propertyName, string propertyValue)
 Updates the currently loaded V-Ray scene. More...
 
bool SetValue (string propertyName, string propertyValue, double time)
 Updates the currently loaded V-Ray scene. More...
 
bool SetValue (string propertyName, Transform value)
 Sets the value of the specified property as Transform. More...
 
bool SetValue (string propertyName, Transform value, double time)
 Sets the value of the specified property as Transform. More...
 
bool SetValue (string propertyName, Vector value)
 Sets the value of the specified property as Vector. More...
 
bool SetValue (string propertyName, Vector value, double time)
 Sets the value of the specified property as Vector. More...
 
bool SetValue (string propertyName, Vector[] value)
 Sets the value of the specified property as an array of Vectors. More...
 
bool SetValue (string propertyName, Vector[] value, double time)
 Sets the value of the specified property as an array of Vectors. More...
 
bool SetValue (string propertyName, Vector[] value, int startIndex, int size)
 Sets the value of the specified property as a slice of a Vector array. More...
 
bool SetValue (string propertyName, Vector[] value, int startIndex, int size, double time)
 Sets the value of the specified property as a slice of a Vector array. More...
 
override string ToString ()
 Returns the plugin name. More...
 
string ToString ()
 
new string ToString ()
 
- Public Member Functions inherited from VRay.Plugins.IPluginRef< TexSwitch >
string ToString ()
 
new string ToString ()
 

Static Public Member Functions

static TexSwitch GetInstance (VRayRenderer renderer, string name)
 Use renderer to find and return a TexSwitch instance with the given name
 
static TexSwitch NewInstance (VRayRenderer renderer, string name)
 Use renderer to create and return a TexSwitch instance
 

Properties

object DefaultTexture [get, set]
 (description missing) More...
 
IList< object > Nodes [get, set]
 (description missing)
 
IList< object > Textures [get, set]
 (description missing)
 
- Properties inherited from VRay.Plugins.Plugin
string this[string property] [get, set]
 Gets or sets a property with the given name. More...
 
- Properties inherited from VRay.Plugins.IPluginRef< T >
string OutputName [get]
 The output property name of the plugin if any. More...
 
new string OutputName [get]
 The output property name of the plugin if any. More...
 
Plugin Plugin [get]
 The plugin. More...
 
new T Plugin [get]
 The plugin. More...
 
- Properties inherited from VRay.Plugins.IPluginRef< TexSwitch >
string OutputName [get]
 The output property name of the plugin if any.
 
new string OutputName [get]
 The output property name of the plugin if any.
 
Plugin Plugin [get]
 The plugin.
 
new T Plugin [get]
 The plugin.
 

Additional Inherited Members

- Protected Member Functions inherited from VRay.Plugins.Plugin
 Plugin (VRayRenderer renderer, long id)
 
 Plugin (VRayRenderer renderer, string name)
 
void Initialize (VRayRenderer vrayRenderer, long pluginId)
 

Detailed Description

Chooses from a list of other color textures based on which scene object is being shaded [gpuSupport=(none)]

Member Function Documentation

◆ Get_DefaultTexture()

object VRay.Plugins.TexSwitch.Get_DefaultTexture ( double  time)

Gets the value of TexSwitch.DefaultTexture

Parameters
timeThe time, when the value is requested.
Returns
The value of the property.

◆ Get_Nodes()

IList< object > VRay.Plugins.TexSwitch.Get_Nodes ( double  time)

Gets the value of TexSwitch.Nodes

Parameters
timeThe time, when the value is requested.
Returns
The value of the property.

◆ Get_Textures()

IList< object > VRay.Plugins.TexSwitch.Get_Textures ( double  time)

Gets the value of TexSwitch.Textures

Parameters
timeThe time, when the value is requested.
Returns
The value of the property.

◆ Set_DefaultTexture()

bool VRay.Plugins.TexSwitch.Set_DefaultTexture ( object  val,
double  time 
)

Sets a value to TexSwitch.DefaultTexture

Parameters
valThe value to be set.
timeThe time, when the value will be changed.
Returns
false, in case an error occurred.

◆ Set_Nodes()

bool VRay.Plugins.TexSwitch.Set_Nodes ( IList< object >  val,
double  time 
)

Sets a value to TexSwitch.Nodes

Parameters
valThe value to be set.
timeThe time, when the value will be changed.
Returns
false, in case an error occurred.

◆ Set_Textures()

bool VRay.Plugins.TexSwitch.Set_Textures ( IList< object >  val,
double  time 
)

Sets a value to TexSwitch.Textures

Parameters
valThe value to be set.
timeThe time, when the value will be changed.
Returns
false, in case an error occurred.

Property Documentation

◆ DefaultTexture

object VRay.Plugins.TexSwitch.DefaultTexture
getset

(description missing)

Default value: AColor(0, 0, 0, 1)


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