var oItem = Selection(0);

If ( oItem.IsClassOf( siCollectionItemID ) ) {
                // subcomponent reference
                var oObject = oItem.SubComponent.Parent3DObject;
                var oSubComponents = oItem.SubComponent.ComponentCollection;
}



From: softimage-boun...@listproc.autodesk.com 
[mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Avinash Sunnasy
Sent: Friday, January 10, 2014 11:45 AM
To: softimage@listproc.autodesk.com
Subject: How to get a primitive (polymsh) from subcomponent (pntSubComponent)

Hi,

If the current selection in the viewport is a point e.g. "cube1.pnt[6]" 
(CollectionItem) how do I get the primitive e.g. "cube" as X3DObject?

Hopefully this is an easy problem to solve. :)

Thanks,

Avinash.


Reply via email to