æè¿ã®ãæ°ã«å ¥ã - 1ããå³ã¯ãªãã¯ã
倧ããããšãããªããã©ãæè¿ã®ãæ°ã«å ¥ãã玹ä»ããã³ãŒãã 第äžåŒŸã¯å³ã¯ãªãã¯ã FXãäœã£ãŠãäžã§ãåã«ã¯2倧è£ããŒããšãããã®ããããŸãããã㯠ãããŒãã¬ãŒã ã極åæããªãããšãæã®æåç¯å²ã極åå°ãªãããã ã§ããä»åã¯åŸè ã®ããã«ãå¿ èŠãªã«ã¹ã¿ãã€ãºã§ãã ããŒãã®ããªã»ããã«å ¥ããã°ããããããšèšã人ããããããããªãã§ãããããã¯ãã©ã¡ãŒã¿ã®äžŠã³é ãäœçœ®ã®ã¬ã€ã¢ãŠããèšæ¶ããŠããŸããHoudiniã¯ããŒãžã§ã³ãå€ãããšããã©ã¡ãŒã¿ã®ã¬ã€ã¢ãŠããå€ããããšãªããŠããšã¯åœããåãªã®ã§ãããŒãžã§ã³ããšã«ããªã»ãããæŽæ°ããå¿ èŠãããéåžžã«ããã©ãã®ã§ãããšãããã§å³ã¯ãªãã¯ã®ã¡ãã¥ãŒã«ãµããŒãããŒã«ãè¿œå ããŠå¹çåãå³ã£ãŠããŸãã ã¡ãã¥ãŒã®è¿œå ã®ä»æ¹ã§ããã ããŒããå³ã¯ãªãã¯ããæã«ã¡ãã¥ãŒãè¿œå ããã«ã¯ãOPmenu.xmlãç·šéããŸãã ãã©ã¡ãŒã¿ãå³ã¯ãªãã¯ããæã«ã¡ãã¥ãŒãè¿œå ããã«ã¯ãPRAMmenu.xmlãç·šéããŸãã åºæ¬çã«ã¯ãããã«æžããŠãããã§ãèªãã°ããããŸãã http://www.sidefx.com/docs/houdini/basics/config_menus.html ãé¡ãšããŠãå æ¥ããã«ããã®ã»ãããŒã§Descriptive Parmã®è¡šç€ºã®ä»æ¹ãç¿ã£ãã®ã§ãããããã©ã¡ãŒã¿ã®å³ã¯ãªãã¯ã«è¿œå ããŠã¿ãŸãããã Descriptive Parmãšã¯ãFile Sopãªã©ã«ãããNetwork Viewäžã§ããŒãã®ååã®äžã«ãããã€ã§ãã ãããã衚瀺ãããŠãªãããŒãã«ã衚瀺ãããããã«ããŸããããã§ããã¡ãã¡ããŒããéžæããŠãã©ã¡ãŒã¿ãèŠãªããŠããéèŠãªãã©ã¡ãŒã¿ã®å€ãNetwork Viewäžã§ç¢ºèªã§ããããã«ãªããŸãããããããã®ãã©ã¡ãŒã¿ãäœãã®ããŒããšãªã³ã¯ããŠããã®ããŒãã¯ã¯ãœéãåŠçãããªããã°ãªããªãã®ãªãããã®å€ã衚瀺ããããã«ãæ¯åæéãããã£ãŠããŸãã®ã§ãæ°ãã€ããŠãã ããã æåã«ãPythonã§ã©ãããã確èªããŸãããããã«ããèŠããšããŒãã®UserDataãå€æŽããã°ãããããã§ãã http://www.sidefx.com/docs/houdini/network/badges.html#textbadges äžã®æ·»ä»ã®ããã«MountainSopã®Element SizeããNetwork Viewã«è¡šç€ºãããã«ã¯ãPythonã¯ãããªæãã node = hou.node('/obj/geo1/mountain1') parm_name = 'elementsize' node.setUserData("descriptiveparm", parm_name) ããŒããšãDescriptive Parmã«ãªããã©ã¡ãŒã¿ã®ååãå¿ èŠã§ããã å¿ èŠãªãã®ãããã£ãã®ã§ãå®éã®äœæ¥ã«å ¥ããŸãããããŸãã¯Pythonãã¡ã€ã«ãäœããŸããããã§ã¯ãchangeDescriptiveParm.pyãšããååã«ããŠãHoudiniãã€ã³ããŒãã§ããå Žæã«ä¿åããŸãã import hou def doit(parms,type): parm = parms[0] parm_name = parm.name() node = parm.node() if type == "clear" parm_name = "" node.setUserData("descriptiveparm", parm_name)) çŸåšãå³ã¯ãªãã¯ããŠãããã©ã¡ãŒã¿ãäœãã¯parms=kwargs["parms"]ã§ååŸããŸããparmsãšãããšããããªã¹ããšããŠå€ãè¿ã£ãŠããŸããéžæããŠããã©ã¡ãŒã¿ã¯1ã€ãªã®ã§ãparm = parms[0]ããã©ã¡ãŒã¿ããããŒãã®æ å ±ãåŸãã«ã¯ãåçŽã«parm.node()ãããã§ãå¿ èŠãªæ å ±ã¯ãã¹ãŠååŸã§ããããšã«ãªããŸãã Descriptive Parmãã¯ãªã¢ãããæãããã®ã§ãparm_nameã空ã«ããŠããããå¯èœã«ããŠãããŸãã æåŸã«ãPARMmenu.xmlãç·šéããŸããããããã§ãã <?xml version="1.0" encoding="UTF-8"?> <menuDocument> <menu> <subMenu id="changeDescriptiveParm"> <label>Change Descriptive Parm</label> <scriptItem> <label>Set</label> <scriptCode><!...