IN_EXCLUDE GUI Element Usage
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 02/03/2003 at 20:01, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.012
Platform: Mac ;
Language(s) : C++ ;---------
Having added this element to a description file, i can now see it, but i don't know how ot retrieve information from it can anyone help?the way i'm getting it's contents is to access it as a BaseContainer
myobjectlist = interfacecontainer->GetContainer(ID_INEXCLUDE);
is this right?
from there where is the description of the ID's used so that i can retrieve the list of objects in there? (how can i find out how many objects are in there too?).
The reason I want to use this interface element is simply because i want to have a list of obejcts, that i can then retreive their position from.
should I use another interface element type instead to do this? (and any ideas why the IN_EXCLUDE element works, but when i remove an item from it c4d crashes?).
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 04/03/2003 at 23:55, xxxxxxxx wrote:
You have to get at the InExcludeData object (see customgui_inexclude.h) associated with the element.
GeData inex; obj->GetParameter(DescID(ID_INEXCLUDE), inex, NULL); InExcludeData* inexdata = static_cast<InExcludeData*>(inex.GetCustomDataType(CUSTOMDATATYPE_INEXCLUDE_LIST));
Then you can use the various functions in the InExcludeData class to access the objects in the list.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 05/03/2003 at 19:50, xxxxxxxx wrote:
thanks this worked for me to get the object list out of s selection object (though having a IN_EXCLUDE object in my own gui caused cinema to quit for some reason whith this code invoked).