Message 1 of 3
Legacy Appearance Library is the only one that works but I can't get it
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
From help in this forum, the process of working with appearance is:
- Copy an appearance from a material library to the design
- Making changes (color, texture etc.) to the copied version
- Apply the copied version to a body or face.
I tried to manually (not programmatically) copy "Hardwood" from "Legacy Appearance Library"
and then programmatically changeTextureImage with a JPEG image, this works.
If the same is done with "Mahogany" from "Fusion 360 Appearance Library", it does not work (manually or programmatically).
It failed at getting texture (value None returned):
prop = copiedMahogany.appearanceProperties.itemByName('Image')
image = adsk.core.AppearanceTextureProperty.cast(prop) #OK
texture = adsk.core.AppearanceTexture.cast(image.value) #return None
So I tried to programmatically getting "Hardwood" from "Legacy Appearance Library", it won't let me do it.
matLib = app.materialLibraries.itemByName("Legacy Appearance Library")
matLib value is None
but matLib = app.materialLibraries.itemByName("Fusion 360 Appearance Library")
return ok,
I then programmatically copy an item "Mahogany" from "Fusion 360 Appearance Library" to design and changeTextureImage to a JPEG image , texture as shown above return None.
I am stuck. I hope this is not Fusion bug. Please help cause I would be funny to ask user to manually create an appearance from the "Legacy Appearance Library".