Manipulate a Component with "PathID" instead of "Model Item Widget"
Hi there,
In the post How to select model components in a 3d model without explicit definition of model Items?
I noticed that it is possible to manipulate a Component with "PathID" instead of "Model Item Widget".
$scope.currentSelection = target + "-" + pathid; // create a component selection e.g. "model-1-/0/0/3/2"
But somehow, I couldn't make it work.
I use Model Item Widget at first. Which works.
(The Model Item Properties Component Occurrence is /0/5 )
$scope.colorRed = function(){
$scope.view.wdg['modelItem-1']['color'] = "rgba(200, 0, 0, 1)";
};
Then I delete the Model Item Widget, and use PathID to identify specific component.
But it is not working with a "PathID".
$scope.colorRed = function(){
$scope.view.wdg['model-1-/0/5']['color'] = "rgba(200, 0, 0, 1)";
};
I really want to make the PathID method work.
Any advice would be appreciated.
Thanks in advance.
ClarK

