Hi,
I am trying to make a simple geometry with the script editor. I'm having trouble to set a metallic medium to a certain face.
here is my attempt:
metallic = project.Media:AddMetal()
newSettings = {}
newSettings['Medium'] = project.Media:Item('Metallic1')
newSettings['Thickness'] = 0.002
substrate.Faces['Face1']:SetProperties(newSettings)
I get an error: Error 17901: Medium has an invalid value.
When I try to set directly the medium with this code:
substrate.Faces['Face1'].Medium= project.Media:Item('Metallic1')
substrate.Faces['Face1'].Thickness=0.01
I get an error about being unable to set Thickness to 0. I think it cannot work because I need to make the media and thickness in 1 operation.
I tryed using the SerProperties with the GetDefaultMedia() and it works fine.
Do you have any suggestions?
Thank you