【译】Blender 用户界面(UI)开发文档.pdfVIP

【译】Blender 用户界面(UI)开发文档.pdf

  1. 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
  4. 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
  5. 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们
  6. 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
  7. 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
目 录 Interface 用户接口 (UI ) 本文档使用 看云 构建 - 2 - Interface 用户接口 (UI ) Interface 用户接口 (UI ) NOTE This document uses Python global in a way which is bad practice, this document should be edited to remove misuse of globals --Ideasman42 1248, 9 September 2013 (CEST). 注意 :这个文档使用了大量的Python全局变量 ,这是一种不好的做法。此文档应该被编辑以 消除滥用全局变量 --Ideasman42 1248, 9 September 2013 (CEST). Interface用户接口 Most scripts need to communicate with the user in some way. A script may be invoked from a menu or from a button in a panel, and it may take its input from sliders, checkboxes, drop-down menus or inputs boxes. User interface elements are implemented as Python classes. Two types of interface elements are discussed in these notes 大多数脚本需要以某种方式与用户进行沟通。可以从菜单调用一个脚本或是面板中的一个按 钮 ,可能是一个滑块输入、复选框、下拉菜单或输入框。用户界面元素作为Python类来实 现。以下讨论了两个界面元素的类型 : A panel is a class derived from bpy.types.Panel. It has properties and a draw function, which is called every time the panel is redrawn.一个面板 ,由 bpy.types.Panel驱动。它具有属性和draw函数 ,每次调用的时候都会被重新绘制。 An operator is a class derived from bpy.types.Operator. It has properties, an execute function, and optionally an invoke function. Operators can be registred to make them appear in menus. In particular, a button is an operator. When you press the button, its execute function is called.一个Operators由 bpy.types.Operator驱动。它包含参数 ,execute函数和可选调用函数。Operators可以 被注册使其出现在菜单上。特别说明 ,一个按钮就是Operators ,当你按下按钮的时候 , 它就会调用execute函数。 Both panels and operators must be registered before they can be used. The simplest way to register everything in a file is to end it with a call to bpy.utils.register_module(name). 本文档使用 看云 构建 - 3 - Interface 用户接口 (UI ) operators和panels都需要先注册才能使用。一般注册任何东西都会在代码的最后调用 bpy.utils.register_module(name)。 The interface part of the API is pr

文档评论(0)

max + 关注
实名认证
文档贡献者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档