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