C++ (Qt)const int DIFFUSE_ID = 2070;...Param * param = object->GetParam(DIFFUSE_ID);
C++ (Qt)double value = object->GetParamValue(DIFFUSE_ID, currentTime);
const int MATERIAL_ID = 2070;...// получаем DIFFUSE_ID из MATERIAL_IDobject->setCurrentParam(MATERIAL_ID);double value1 = object->GetParamValue(DIFFUSE_ID, currentTime);// получаем DIFFUSE_ID из MATERIAL_ID1object->setCurrentParam(MATERIAL_ID1);double value2 = object->GetParamValue(DIFFUSE_ID, currentTime);
const int MATERIAL_ID = 2070;...// получаем DIFFUSE_ID из MATERIAL_IDdouble value1 = object->GetParamValue(MATERIAL_ID, DIFFUSE_ID, currentTime);// получаем DIFFUSE_ID из MATERIAL_ID1double value2 = object->GetParamValue(MATERIAL_ID1, DIFFUSE_ID, currentTime);
object->setCurrentParam(MATERIAL_ID);double value1 = object->GetParamValue(DIFFUSE_ID, currentTime);
// получаем DIFFUSE_ID из MATERIAL_ID1double value2 = object->GetParamValue(MATERIAL_ID1, DIFFUSE_ID, currentTime);
C++ (Qt)double value = object->GetMaterialValue(materialIndex, X_DIFFUSE_ID, currentTime);
C++ (Qt)double CObject::GetMaterialValue( uint materialIndex, uint paramIndex, double currentTime ){ Q_ASSERT(materialIndex < m_MaterialMaps.size()); int ID = m_MaterialMaps[materialIndex].value(paramIndex); // получаем реальное уникальное ID Q_ASSRERT(ID); return GetParamValue(id, currentTime);}