CaptureQuaternionNode.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:InSituImmersiveAuthoring 作者: sat-metalab 项目源码 文件源码
def run(self):
        capture = self.getInputValue("Capture")

        if capture and not self.captured:
            self.outputs["Quaternion"].default_value = self.getInputValue("Quaternion").copy()
            self.outputs["Captured"].default_value = True
            self.captured = True

        elif not capture and self.captured:
            if self.getInputValue("Momentary"):
                self.outputs["Quaternion"].default_value = Quaternion((1.0, 0.0, 0.0, 0.0))
                self.outputs["Captured"].default_value = False
            self.captured = False
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号