AM Basic Tab & Phong Tab ID's? [SOLVED]
-
On 12/10/2016 at 12:15, xxxxxxxx wrote:
Hi,
I'm trying to switch the AM tabs in code. But I can't find the ID's for a couple of them.
Can anyone tell me where to find the tab(group) ID's for the Basic & Phong tabs?
None of the ID's in the object's container seem to work.
I've searched through the .h files. But I can't find ID's associated with these tabs(groups).(999, 'ID_BASELIST_NAME') #The Basic tab does not work. It selects the Object tab!? (999, 'ID_BASEOBJECT_GROUP1') #The Coord tab works (999, 'ID_OBJECTPROPERTIES') #The Object tab works (999, 'PRIM_CUBE_SUBF') #The Phong tab does not work. It selects the Object tab!?
This is an example how I'm switching to the different the tabs:
import c4d def main() : obj = doc.GetFirstObject() description = obj.GetDescription(c4d.DESCFLAGS_DESC_0) #Get the description of the active object for bc, paramid, groupid in description: #Iterate over the parameters of the description print bc[c4d.DESC_IDENT] did = c4d.DescID(c4d.ID_BASEOBJECT_GROUP1) c4d.gui.ActiveObjectManager_SetObject(c4d.ACTIVEOBJECTMODE_OBJECT, obj, c4d.ACTIVEOBJECTMANAGER_SETOBJECTS_OPEN, did) if __name__=='__main__': main()
-ScottA
-
On 13/10/2016 at 02:06, xxxxxxxx wrote:
Hello,
the "Basic" and "Phong" tab are not part of the actual object description. The "Basic" tab is inherited from a base class. In this case from Obaselist. The symbol used to describe this class is Tbaselist2d:
did = c4d.DescID(c4d.Tbaselist2d)
Also the "Phong" tab is not part of the original object description. It is added for convenience by parsing the object's tags. The added tab ID is constructed internally using the tag type:
did = c4d.DescID(c4d.DescLevel(c4d.ID_TAGLIST, c4d.DTYPE_GROUP, 0), c4d.DescLevel(c4d.Tphong, c4d.DTYPE_GROUP, 0))
best wishes,
Sebastian -
On 13/10/2016 at 07:11, xxxxxxxx wrote:
Thanks,
I knew they were not part of the object's descriptions. But I could not find what/where they were hiding.-ScottA