Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Input and Add material to all bodies

ph0en1x01
Contributor

Input and Add material to all bodies

ph0en1x01
Contributor
Contributor

I would like to prompt the user to input a material into the input box and add the same material to all bodies. Additionally, I would like the name of the material and its properties to be reflected in the properties of the file, as shown in the image.

 

Screenshot (122).png

 

 

 

 

 

 

 

 

 

 

Screenshot (121).png

 

 

 

 

 

 

 

 


Could you please provide me with a sample script to input and add a material to all bodies?

 

0 Likes
Reply
Accepted solutions (1)
299 Views
1 Reply
Reply (1)

kandennti
Mentor
Mentor
Accepted solution

Hi @ph0en1x01 .

 

I don't think it is user-friendly to use an input box and have the user enter the name of the material.
It is better to have the user select from a drop-down list, as in this sample script.

1.png

It should be a good script for you to learn, as it includes the process of changing the material of each body.

 

After changing the material, you can examine the physicalProperties and everything should be changed.

1 Like