- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I trying to pick a material stored in my 'Favorites' and assign to a body but get the error shown in the pic.
I've used the following code, and worked fine when picking from the 'Fusion 360 Material Library'
# get material lib
mLibs = app.materialLibraries
mLib = mLibs.itemByName('Favorites')
# get one material from this lib
mOne = mLib.materials.itemByName('AB2')
. . . .
BladeLoftBody = BladeLoft.bodies.item(0)
. . . .
bodyM = BladeLoftBody.material
# change body material
BladeLoftBody.material = mOne
app.activeViewport.refresh()
Many Thanks in advance.
Error and material shown in Favorites
Solved! Go to Solution.