Hi, I’m a newcomer programming Rhino Plugins, so possible the answer would be obvious for others, but I can’t find the way to query the mapping channel used by a Texture. So my question is:
Is it possible to query the ‘Mapping Channel’ number assigned to a Texture using RhinoCommon SDK?
Here is the code snippet written so far, I thought I could use Texture class here to ask the channel mapping number available on the Texture Setting Dialog in Rhino, but there is no suitable method or property found:
RhinoDoc doc = RhinoDoc.ActiveDoc;
var object_enumerator_settings = new ObjectEnumeratorSettings();
object_enumerator_settings.IncludeLights = true;
object_enumerator_settings.IncludeGrips = false;
var rhino_objects = doc.Objects.GetObjectList(object_enumerator_settings);
var meshType = MeshType.Render;
var meshingParameters = MeshingParameters.DocumentCurrentSetting(doc);
foreach (var rhino_object in rhino_objects)
{
if (rhino_object.IsSelected(false) != 0 && rhino_object.IsMeshable(meshType))
{
rhino_object.CreateMeshes(meshType, meshingParameters, false);
Material frontMaterial = rhino_object.GetMaterial(true);
Texture bitmapTexture = frontMaterial.GetBitmapTexture();