英文:
Is it possible to implement back & forward buttons in Autodesk Platform Service?
问题
在3D模型中,如果我隐藏了一个部分,我想通过按Ctrl + Z或点击返回按钮来取消(重新显示)它。我想在任何操作中都能这样做。这是否可能?
英文:
Let's say, after I hide one part in 3D model, I would like to cancel(re-show) it by Cntrl + Z or by clicking back button. I would like to do it in any acton. Is it possible?
答案1
得分: 1
你可以简单地委托键盘按下事件,并调用 viewer.restoreState(previous state) 或 viewer.showAll()。
英文:
you could simply delegate the event of keyboard down and call viewer.restoreState(previous state) or viewer.showAll()
The old blog might be helpful
https://adndevblog.typepad.com/cloud_and_mobile/2015/02/view-and-data-api-tips-how-to-set-hotkeys-for-viewer.html
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论