@ferdinand So how can I look into the cache of the cloner in c++ in my case with the clonerObj?I already got the moData and op
Posts made by freeze
-
RE: Get the random result of Cloner Object
-
RE: Get the random result of Cloner Object
@ferdinand Sure,I mean that how can I get the cubes' matrix shown in the scene in the picture I uploaded for example.
-
Get the random result of Cloner Object
I created a Cloner Object and place a cube inside,using Random as clones type.The result clones changed with the order in Cloner Object like below:
But when I try to get the information of the clones like:
Matrix clonerMatrix = clonerObj->GetMg(); BaseTag* motag = clonerObj->GetTag(ID_MOTAGDATA); if (motag == nullptr) return; // populate the GetMoDataMessage instance by sending a MSG_GET_MODATA GetMoDataMessage modataMsg; if (!motag->Message(MSG_GET_MODATA, &modataMsg)) return; if (!modataMsg.modata) return; // access the MoData from the returned GetMoDataMessage and check its validity MoData* moData = modataMsg.modata; if (!moData) return; // retrieve the number of Matrix items as well as the array containing the matrix for each of them Int32 matrixItemsCnt = moData->GetCount(); Matrix* itemsMtxArray = static_cast<Matrix*>(moData->GetArray(MODATA_MATRIX));
the matrixItemsCnt always be 60 ,full of the instances in this case ,same as the Matrix I got.Any way can I just get the clones shown as the random result?Many thanks.
-
RE: How to get the attributes of rsramp node in c++?
@ferdinand
Thank you for the answer! The problem is solved after I try to find the child of the port according to your answer. -
How to get the attributes of rsramp node in c++?
I want to get the value of the knots' color,interpolation,knot position and bias position of a rsramp node .It seems that it is a special data type that I can not get it like "GetOrDefaultmaxon::Float64()".