本文整理汇总了C++中IParamBlock2::GetValueByName方法的典型用法代码示例。如果您正苦于以下问题:C++ IParamBlock2::GetValueByName方法的具体用法?C++ IParamBlock2::GetValueByName怎么用?C++ IParamBlock2::GetValueByName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IParamBlock2
的用法示例。
在下文中一共展示了IParamBlock2::GetValueByName方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: addUnwrap
void addUnwrap() {
auto* ip = GetCOREInterface();
auto pINode = ip->GetSelNode(0);
log(L"New node name is {0} : \n", pINode->GetName());
TimeValue time = GetCOREInterface()->GetTime();
Modifier *unwrap_uvw = (Modifier*)ip->CreateInstance(OSM_CLASS_ID, Class_ID(0x2df2e3a, 0x72ba4e1f));
log(L"{}", unwrap_uvw->GetName().data());
IParamBlock2* ipUVUnrapBlock = ((Animatable*)unwrap_uvw)->GetParamBlock(0); //only one pblock2
//ipBendBlock->SetValue(0, time, );
//ipUVUnrapBlock()->SetValue()
int width = 0;
int height = 0;
int spline_display = 1;
int splinemap_manualseams = 1;
Interval iv = FOREVER;
ParamID pid = 8;
ipUVUnrapBlock->GetValue(pid, time, width, iv);
log("width value is {}\n", width);
ipUVUnrapBlock->GetValue(9, time, height, iv);
log("height value is {}\n", height);
ipUVUnrapBlock->GetValue(29, time, spline_display, iv);
log("spline_display value is {}\n", spline_display);
ipUVUnrapBlock->GetValue(27, time, splinemap_manualseams, iv);
log("splinemap_manualseams value is {}\n", splinemap_manualseams);
//ipUVUnrapBlock->SetValue(27, time, 1);
//ipUVUnrapBlock->SetValue(19, time, 0.23f);
height = 0;
ipUVUnrapBlock->GetValue(9, time, height, iv);
log("new height value is {}\n", height);
log(L"New node name is {0} : \n", pINode->GetName());
GetCOREInterface12()->AddModifier(*pINode, *unwrap_uvw);
ipUVUnrapBlock->SetValue(9, time, 22);
ipUVUnrapBlock->GetValueByName(L"renderuv_height", time, height, iv);
log("new height value in getvaluebyname is {}\n", height);
}