How to change decal color or update many decals

Anonymous

How to change decal color or update many decals

Anonymous
Not applicable

Hi, 

I am trying to find a way to quickly change the color of many decals in my design at once. I have many objects/components (keycaps, like on your keyboard, to be specific), each with a separate, unique decal. I'd like to be able to change the color of every one of these decals at once, and I can't seem to find a solution to that problem. 

 

My current solution was the following: 

- Apply decals to object in fusion 

- Change color of decal source .png file as desired (i.e., change the image file outside of fusion) 

- In fusion, turn decal off, then off again, to apply color change. 

 

This worked until I closed the design and reopened it. Now turning the decal off and on again doesn't effect the color change, it just retains the original color. This is clearly because the decal image is cached or something somewhere. 

 

Can someone tell me how to reset this? Like how to force an update of all decals? Or how to delete this cache or whatever? 

 

The other option is writing a python script. Could someone advise me on how to do this? I know python, but am unfamiliar with the Fusion API. Here's what I would like the script to do: 

 

- Find every decal in the design 

- Replace decal image with new image of the same name from a specified folder 

 

That's all really. I.e., right clicking on the decal and clicking "replace image file" works fine. I just need a script that does it automatically and for every decal in the design. 

 

Thanks. Please let me know if I need to clarify anything. Happy to provide additional information. 

 

 

 

 

 

 

0 Likes
Reply
1,326 Views
2 Replies
Replies (2)

jeff_strater
Community Manager
Community Manager

Hate to report bad news, but I don't think there is a way to do this.  I was surprised to learn that you can do it even once, by turning the decal on and off (only in the same session).  I know the decal is stored in the design itself (so that it can exist even without the external image file), so I did not expect it to update with visibility change.  But yes, after save and close, there is no remaining link to the local file.

 

And, even worse, it doesn't look like the API supports the Decal feature yet.  So, I think the only way to update decals is manually, one by one.

 


Jeff Strater
Engineering Director
0 Likes

rmiglioriEKDK2
Contributor
Contributor

This is really a feature that should be added to Fusion...the decal control is incredibly limited.

0 Likes