BloodQuest
01-27-2006, 10:53 AM
I'm trying to fix the selectchildren.ls script so that it will select the children of all selected objects, though I'm not having much luck.
For one thing there's this:
(curItem) = curScene.getSelect();
Why is curItem in brackets? Looking at the docs, the format ought to be without. Obviously, I'm missing something ... brains, perhaps?
Also can't figure out why this
for(blah...)
{
if((itemType = hierarchyList[y].genus) == BONE)
AddToSelection(hierarchyList[y].id);
}
doesn't work properly - only child bones of the last of the selected objects is left selected after it runs through the loop.
I'd be glad of any suggestions!
Simon
For one thing there's this:
(curItem) = curScene.getSelect();
Why is curItem in brackets? Looking at the docs, the format ought to be without. Obviously, I'm missing something ... brains, perhaps?
Also can't figure out why this
for(blah...)
{
if((itemType = hierarchyList[y].genus) == BONE)
AddToSelection(hierarchyList[y].id);
}
doesn't work properly - only child bones of the last of the selected objects is left selected after it runs through the loop.
I'd be glad of any suggestions!
Simon