Decal API - how to replace image file by script

Decal API - how to replace image file by script

rmiglioriEKDK2
Contributor Contributor
1,105 Views
6 Replies
Message 1 of 7

Decal API - how to replace image file by script

rmiglioriEKDK2
Contributor
Contributor

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. 

 

 

Assuming there's no easy solution, can I write a python script? 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. 

1,106 Views
6 Replies
Replies (6)
Message 2 of 7

goyals
Autodesk
Autodesk

I am afraid to say Decal functionality is not exposed through Fusion API.



Shyam Goyal
Sr. Software Dev. Manager
0 Likes
Message 3 of 7

rmiglioriEKDK2
Contributor
Contributor

lol why....

 

Talk about irritating. Could you guys maybe, like, add it?

Message 4 of 7

maydemirx
Community Visitor
Community Visitor

Hello,

 

Do you have any plan to add this functionality to the Fusion API?

0 Likes
Message 5 of 7

BrianEkins
Mentor
Mentor

Ideally, all Fusion functionality would be exposed through the API. However, there are limited resources to work on this, and there has been very little demand for automating decals, so it's always been a low priority. It will help the developers if you can describe the specific workflow with decals that you would like to automate.

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
0 Likes
Message 6 of 7

rmiglioriEKDK2
Contributor
Contributor

Whatever, fusion sucks anyway

0 Likes
Message 7 of 7

maydemirx
Community Visitor
Community Visitor

We've a special application that helps to our clients to customize their products in 2D web application. We've integrated this application to Fusion 360 through Add-In scripts. In this case, if even user has not experience with 3D concepts they can able to make 3D render result by using this method. Only one missing thing and it's Decal. Our clients also needs to add a custom image to the face of a surface. I will be happy if there is another way to make this happens. Thanks.

0 Likes