Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
我在互联网上找到了一个类似的脚本,但它删除了视图并清除了所有材料。仅获得所选对象的材料,但我想保留原始材料,只添加新获得的材料。
这对我来说非常重要,但我不知道如何编写代码。请帮助我。
Solved! Go to Solution.
我在互联网上找到了一个类似的脚本,但它删除了视图并清除了所有材料。仅获得所选对象的材料,但我想保留原始材料,只添加新获得的材料。
这对我来说非常重要,但我不知道如何编写代码。请帮助我。
Solved! Go to Solution.
to start, ask your questions in any English (broken, simplified, especial, custom, etc.)
(
if selection.count != 0 then
(
view = sme.getview sme.activeview
selObjsArr = selection as array
for i = 1 to selObjsArr.count where (mat = selObjsArr[i].material) != undefined do
(
view.createnode mat [(i - 1) * 200, (i - 1) * 200]
)
)
)
there's a built in SME action for this
(sme.getmainframe()).setfocus();
actionman.executeaction 369891408 "55581" -- "Get from Selected"