[Solaris] HDAã«ã¡ã©ã®ã€ã³ããŒã
åé¡ Solarisã«SceneImportLOPã§ã«ã¡ã©ãã€ã³ããŒãããéãèªåã®HDAã«ã¡ã©ãã€ã³ããŒãããããšãããšã¯ãŒãã³ã°ãã§ãŠã€ã³ããŒãã§ããŸããã ïŒèªåã®ã«ã¡ã©ãšã¯ããããHDAã§ãïŒ ä»¥äžã®ãããªã¯ãŒãã³ã°ã衚瀺ãããŸããããã¯ãããã19.5以éã§ãã衚瀺ãããªããããããŸããã 解決ç ãŸãã¯èšãããéãããªã³ã¯ã«é£ã³ãŸãããã 以äžã®ãããªèšè¿°ãåé ã«ãããŸãããã«ã¹ã¿ã ããŒããLOPã«èªã¿èŸŒãã«ã¯ãªã«ãäœæ¥ãå¿ èŠãªããã§ããã Scene Import LOPãç¹å®ã®Houdiniãªããžã§ã¯ãããŒãã¿ã€ããUSDã«å€æããæ¹æ³ãã«ã¹ã¿ãã€ãºããããšãã§ããŸãã ããã¯ãç¹ã«ã«ã¹ã¿ã ããŒãã¿ã€ã(äŸãã°ããããã©ã€ãšã¿ãªãªã¬ã³ãã©ãŒé¢ä¿ã®ã©ã€ãã¿ã€ããã«ã¡ã©ã¿ã€ã)ã®å€æã«åœ¹ç«ã¡ãŸãã ãã®åŸãèªã¿ç¶ãããšè²ã PythonããæžããŠãããŸãããã§ãã¡ãã£ãšé·ãã®ã§ç¡èŠããŸãã Houdiniã¯ã«ã¹ã¿ã ã§ãããã®ã«ã€ããŠã¯ãã€ã³ã¹ããŒã«ãã©ã«ãã«ã ãããã®ãã®ããã€ããªã«ãªã£ãŠããªãç¶æ ã§ä¿åãããŠãã®ã§ããããã³ããŒããŠããå§ããã®ãæçã®éã§ãããšããããšã§ä»¥äžã®ãã¡ã€ã«ãèŠãŠã¿ãŸãããã ã€ã³ã¹ããŒã«ãã©ã«ã/houdini/husdplugins/objtranslators/cam.py import hou import husd from pxr import UsdGeom class CameraTranslator(husd.objtranslator.Translator): def shouldTranslateNode(self): return True def primType(self): return 'Camera' def populatePrim(self, prim, referenced_node_prim_paths, force_active): super(CameraTranslator, self).populatePrim(prim, referenced_node_prim_paths, force_active) cam = UsdGeom.Camera(prim) proj = self._node.parm('projection').evalAsString() if proj == 'perspective': cam.CreateProjectionAttr('perspective') elif proj == 'ortho': cam.CreateProjectionAttr('orthographic') # A few of the parameters need to be converted into 1/10 scene unit space stage = prim....