-
parent/child select without going to the object manager
Hi
I am looking for some script/function to select child/parent with multiple objects selected. Basically going up or down in a hierarchy mapped to a shortcut. I have found one script for selecting parents without having to go to the object manager. Look below
Now I need one with the same functionality but that works on children. Can anybody help me out?
var parent, obj;
var i;doc->StartUndo();
for (i = 0; object(i); i++)
{
obj = object(i);
doc->AddUndo(UNDOTYPE_CHANGE,obj);
if(obj->GetUp()) {
parent = obj->GetUp();
doc->AddUndo(UNDOTYPE_CHANGE,parent);
parent->SetBit(BIT_AOBJ);
obj->DelBit(BIT_AOBJ);
}
}
doc->EndUndo()
Sorry, there were no replies found.