SFSObject Get Values?
Posted: 19 Dec 2022, 01:35
I am tired of looking at this one. I looked at it on the server-side extension end, and everything is sending properly from the client, but something is wrong--obviously, or I wouldn't be here. Just look at the code. It has to be something simple. Tired eyes! Tired eyes...
Extension request:
Extension response:
Thanks so much,
IdleChimp
Extension request:
Code: Select all
SFSObject data = new SFSObject();
data.PutInt("id", id);
data.PutDouble("x", px);
data.PutDouble("y", py);
data.PutDouble("z", pz);
data.PutDouble("r", ry);
NIMSPRO.SFS.Send(new ExtensionRequest("transform", data));
Extension response:
Code: Select all
SFSObject t = (SFSObject)param.GetSFSObject("transform");
int id = t.GetInt("id");
var px = (float)t.GetDouble("x");
var py = (float)t.GetDouble("y");
var pz = (float)t.GetDouble("z");
var ry = (float)t.GetDouble("r");
IdleChimp