Autodesk Forge-选择后如何停止对对象重新着色 [英] Autodesk Forge - How to stop recoloring of object when selected

查看:134
本文介绍了Autodesk Forge-选择后如何停止对对象重新着色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的元素是用颜色编码的,因此当用户选择一个元素时,我们只想将其隔离在视图中(可以按预期工作),但是我们不希望它更改为选择颜色-在哪里可以控制呢?/p>

Our elements are color coded so when a user selects one we just want to isolate it in the views (which works as expected) BUT we don't want it to change to the selection color - where can we control this?

推荐答案

如果您要保持选择在UI中不变成蓝色,可以将选择材料的不透明度更改为透明:

In case you want to keep the selection just not make it blue in the UI, you can change the selection material's opacity to see-through:

viewer.impl.selectionMaterialBase.opacity = 0;
viewer.impl.selectionMaterialTop.opacity = 0;

现在,当您单击一个对象时,它不会变成蓝色.

Now when you click on an object it won't turn blue.

这篇关于Autodesk Forge-选择后如何停止对对象重新着色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆