When i add a component, but the component lose the face's material

component_instance, component_transformation = @parallels_components[component_index][0]
new_component_transformation = component_transformation.clone
entities.add_instance(component_instance.definition, new_component_transformation)

how to add a component instance with the same face’s material

Please enclose your code in backticks to make it readable properly:

On a new line type three backticks ``` then (no spaces) ruby

Then your code.

Then a new line and three more backticks

Then another new line and the continuation of your post

thank you for your notice

ok, i have solved it.
i just add it.

new_component_instance.material = component_instance.material
1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.