Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.
Are you sure about PBAccessor?
what exactly you need? I thought you want immediate action on ui input? Or do you simply ask about Set/GetValue()?
Don't think theres anything in the core, something like this for PB2Value to Value ....
Value* GetValueFromPB(IParamBlock2* pb, ParamID id, ParamType2 type) { PB2Value& pb2val = pb->GetPB2Value(id); switch(type) { case TYPE_INT: case TYPE_BOOL: case TYPE_TIMEVALUE: case TYPE_RADIOBTN_INDEX: case TYPE_INDEX: return Integer::intern(pb2val.i); case TYPE_FLOAT: case TYPE_ANGLE: case TYPE_PCNT_FRAC: case TYPE_WORLD: case TYPE_COLOR_CHANNEL: return Float::intern(pb2val.f); case TYPE_POINT3: case TYPE_RGBA: case TYPE_HSV: return new Point3Value(*pb2val.p); ..... } }
this is exactly what i do... i couldn't find any sdk built-in solution. it doesn't exist
the SDK definitely needs ip's methods PB2Value <-> FPValue
case TYPE_TIMEVALUE:
return int_value(pb2val.i);
return time_value(pb2val.t);
it seams more correct