PDA

View Full Version : pass data from MaxScript to SDK (C++)


gohkgohk
08-31-2009, 09:46 AM
For example, i use ExecuteMAXScriptScript("b=box();b.pos;",0,0) to run the following MaxScript cmd:
b=box()
b.pos;
How can i get back the box position, and put it in an array?
do i need to use the FPValue returned by ExecuteMAXScriptScript? if yes, then how?
thx so much.

guruware
08-31-2009, 02:31 PM
Point3 pos;
FPValue fpVal;
ExecuteMAXScriptScript("b=box pos:[10,20,30]; b.pos;", FALSE, &fpVal);
if(fpVal.type == (ParamType2)TYPE_POINT3_BV) // type is Point3 ?
pos = *fpVal.p;


guruware

CGTalk Moderation
08-31-2009, 02:31 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.