# 怎麼把 UVLayout 外掛到 Rhino

**URL:** <https://cn.discourse.mcneel.com/t/uvlayout-rhino/983>\
**Category:** Rhino for Windows\
**Created:** [2016年九月7日 03:27 UTC](https://cn.discourse.mcneel.com/t/uvlayout-rhino/983 "2016-09-07T03:27:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jhengming](https://avatars.discourse-cdn.com/v4/letter/j/e79b87/32.png) [@jhengming](https://cn.discourse.mcneel.com/u/jhengming)\
**Post date:** [2016年九月7日 03:27 UTC](https://cn.discourse.mcneel.com/t/uvlayout-rhino/983/1 "2016-09-07T03:27:00Z")

</div>

您好，UVLayout 是專門用來拆 UV 的軟體  
我需要開發把 UVLayout 外掛到 Rhino  
UVLayout 官網：[https://www.uvlayout.com/](https://www.uvlayout.com/)

我在他們的官網中看到在 3DMax 中選好物件後，按下按鈕，彈出 UVLayout 視窗  
開始在裡面操作 UV 拆解，拆解完後，按下 Send 鍵  
可以把 obj 檔再回傳到 3DMax 上，畫面立即更新

以下是他們針對 3DMax 及 UVLayout 的動作影片  
[http://www.scriptspot.com/3ds-max/scripts/3dsmax-uvlayout-uvpipe-mod-by-miauu](http://www.scriptspot.com/3ds-max/scripts/3dsmax-uvlayout-uvpipe-mod-by-miauu)

不知 Rhino 能否作到，如果可以，指令如何下，是否有相關的程式範例可以參考 (VC++)？謝謝

---

<div class="post-metadata">

**Author:** ![Jorin](https://sea3.discourse-cdn.com/mcneel/user_avatar/cn.discourse.mcneel.com/jorin/32/3292_2.png) [@Jorin](https://cn.discourse.mcneel.com/u/Jorin)\
**Post date:** [2016年九月7日 04:38 UTC](https://cn.discourse.mcneel.com/t/uvlayout-rhino/983/2 "2016-09-07T04:38:12Z")

</div>

原则上只有 UVLayout 的作者才能做到把 UVLayout 外挂到 Rhino，第三方的开发者只能在两个软件之间建立数据输入输出的桥梁。

目前 Rhino 中导入导出 OBJ 的功能是作为插件存在的（如下图所示），所以 Rhino SDK 中并没有现成的函数和方法可以导入导出 OBJ 文件。所以这就需要您了解 OBJ 格式的规则，在自己编写的插件中去传输 OBJ 格式的文件，您还需要查阅 UVLayout 的 SDK 在 UVLayout 中编写插件以接收传输的 OBJ 文件。

![](https://discourse-cdn-aws1.com/mcneel/uploads/mcneel_cn/original/2X/4/43011d43a3a0c559d32307e3b3a1847c6cef2ad7.png)

目前 Rhino 官方网站尚没有这样的程序范例，其他全部 VC++ 的官方范例请参考：

> **[Samples](https://developer.rhino3d.com/samples/)**
>
> All the official sample code available for Rhino and Grasshopper developers.

---

<div class="post-metadata">

**Author:** ![jhengming](https://avatars.discourse-cdn.com/v4/letter/j/e79b87/32.png) [@jhengming](https://cn.discourse.mcneel.com/u/jhengming)\
**Post date:** [2016年九月7日 05:07 UTC](https://cn.discourse.mcneel.com/t/uvlayout-rhino/983/3 "2016-09-07T05:07:07Z")

</div>

好的 謝謝您的回覆  
那我再到他們官網尋求答案
