Mailing List
Home
Forum Home
Softimage
Carrara
trueSpace
Dir3d-l
Maya - a powerful 3D animation and visual effects software
Macromedia Flash Development
Subjects
Cameras
scaleDown command
black out solved
Aircraft Tutorial
Mathematical XYZ ?
Its done This vs That
Its done first week
recommendations for screen video captures?
3DExplorer "Oddity "
New Director
ProTeam renewals
Fuel 's new websites (X post)
Blue peter create a make toy
targeting groups question
XPost: Shockwave 3D game ( sort of )
RES: RES: RES: Fish Modeling
Emitting particles from object intersection
Fuel 's new websites (X post)
Texturing
Big Break Contest Videos
New Plugins
Models and Texture on my updated site
Error Installing Patch tS6 6
Plasma?
Looking for Inspiration
Weird EMail Q
It 's done first week ?
Cherry not cranberry
New game
Camera Animation Problem
Particle plugins?
 
using The Dictionary on a Compiled operator??

using The Dictionary on a Compiled operator??

2004-02-23       - By Felix Gebhardt

 Back
Reply:     1     2     3     4  

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