  | | | using The Dictionary on a Compiled operator?? | using The Dictionary on a Compiled operator?? 2004-02-23 - By Felix Gebhardt
Back Very much like the Dictionary.GetObject. This gets the imageresolutionX parameter of a clip for example.
CRef RefResX; RefResX.Set(L"Sources." + oSourceName.GetAsText() + L".XRes"); Parameter resParamX(RefResX);
Cheers, Felix
Jose Luis Gomez wrote: > We're using version 3.5, but we've found a way to do it: > > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ ---- > CStatus st; > > CComAPIHandler myApp(app.GetRef()); > CComAPIHandler myDic(myApp.GetProperty(L"Dictionary")); > > CValue myObjVal; > st = myDic.Call(L"GetObject",myObjVal,L"mySphere"); > > if(st == CStatus::OK) > { > X3DObject myx3dobj(myObjVal); > CValue theRadius = myx3dobj.GetParameterValue (L"radius"); > app.LogMessage(L"The radius: " + theRadius.GetAsText()); > } > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ ---- > > How it would be with the new "CRef::Set" method?? (just to know for the > update momment...) > > Thanks for your help > > /Jose Gomez > > > Felix Gebhardt wrote: > >> Which version of XSI are you using? There is a brand new method in 3.5.1 >> just for that. >> >> CRef::Set(const CString&) >> >> >> Cheers, >> Felix >> >> >> >> Jose Luis Gomez wrote: >> >> >>> Hi list, >>> I have a scripted operator in which I'm getting the radius of a sphere >>> called "mySphere" in the following way. >>> >>> sphereRadius = Dictionary.GetObject("mySphere").radius.value; >>> >>> Now I'm trying to do the compiled version of the operator in C++ but I >>> don't know how I can get what i was getting with scripting... >>> >>> Any help?? >>> >>> Thanks in advance >>> >>> /Jose Gomez >>> >>> --- >>> Unsubscribe? Mail Majordomo@(protected) with the following text in >>> body: unsubscribe xsi >>> >>> >> >> --- >> Unsubscribe? Mail Majordomo@(protected) with the following text in >> body: unsubscribe xsi >> >> .
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|
 |