THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 17/07/2012 at 03:47, xxxxxxxx wrote:
Hi everybody,
I stucked again... After trying to initialize the Oprimitiveaxis-object I'm using for align-purposes, I realizied not to have any idea on which way I can address this object.
It's included in the .res-file (simply INCLUDE Oprimitivaxis;) but because it got now name I can't assign an id in the .h-file. And so I have no chance to call it in the pyp-file.
After trying to iterate through tag.GetDataInstance() I got different id's. All from my own datafields, but there is an new id within the result. 3000. Is this the id for Oprimitiveaxis and where can I find such informations?
By the way: why is every element listed with the corresponding id but not my button when iterating through tag.GetDataInstance()?
Here the h.file:
#ifndef _align_H_
#define _align_H_
enum
{
BS_ALIGN_SPLINE = 1000,
BS_ALIGN_TANGENT = 1001,
BS_ALIGN_POSITION = 1002,
BS_ALIGN_SEGMENT = 1003,
BS_ALIGN_KEY = 1004
};
#endif
And here the res-file:
CONTAINER align
{
NAME align;
INCLUDE Obase;
GROUP ID_OBJECTPROPERTIES
{
GROUP
{
LINK BS_ALIGN_SPLINE { ANIM OFF; }
BOOL BS_ALIGN_TANGENT {}
REAL BS_ALIGN_POSITION { UNIT PERCENT; MIN 0.0; MAX 100.0; STEP 0.01; CUSTOMGUI REALSLIDER; }
LONG BS_ALIGN_SEGMENT { MIN 0; }
BUTTON BS_ALIGN_KEY { NAME AOM_BUTTON1; ALIGN_LEFT; SCALE_H; }
}
}
INCLUDE Oprimitiveaxis;
}
cheers,
Sven