THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 05/11/2011 at 14:46, xxxxxxxx wrote:
Perhaps some more detailed information is needed.
The Transform tab Scale value for a Cloner can be accessed with:
BaseContainer *bc = gen->GetDataInstance(); if(!bc) return;
Vector scale = bc->GetVector(ID_MG_TRANSFORM_SCALE);
GePrint("scale: " + VectorToString(scale));
In a MoText, ID_MG_TRANSFORM_SCALE can't be accessed directly as the same ID is used under four different groups.
Using the Letters group as an example, omograph_text.res has this:
GROUP MGTEXTOBJECT_GROUPCHAR
{
SCALE_V;
GROUP
{
COLUMNS 2;
SCALE_V;
IN_EXCLUDE MGTEXTOBJECT_EFFECTORLIST_CHAR
{
SCALE_V;
SCALE_H;
NUM_FLAGS 1;
INIT_STATE 1;
IMAGE_01_ON 1018640;
IMAGE_01_OFF 1018641;
ACCEPT
{
Obaseeffector;
}
}
STATICTEXT { JOINEND; }
VECTOR MGTEXTOBJECT_AXIS_CHAR
{
UNIT PERCENT;
MIN 0.0;
MAX 100.0;
CUSTOMGUI VECTOR2D;
}
BOOL MGTEXTOBJECT_AXIS_CHAR_ALIGN
{
}
}
GROUP MGTEXTOBJECT_GROUPEFFECTOR_CHAR
{
}
}
MGTEXTOBJECT_GROUPEFFECTOR_CHAR appears to correspond with the Transform parameters. omograph_text.h also lists MGTEXTOBJECT_GROUPTRANSFORM_CHAR. I'm not sure which to use or how many levels are involved.
I've tried various subcontanier and DescLevel operations to no avail.
Could someone please provide assistance?