    

 ## On this page

  

 

 # copy

 Last update: 16.07.2026 

<a id="compolyx.MaterialData.copy"></a>

## MaterialData.copy(source, on\_duplicate\_name='keep\_both')

Copy a list of material data source. Keeps track of all dependencies.

### Parameters

- source: A list of source of copy.
- on\_duplicate\_name: Action to take if source.name is already contained in self.fabrics. 
    - keep\_both: Create a new instance with the same name (different ID).
    - overwrite: Replace first instance with equal name in self with source.
    - keep\_existing: Ignore copy action, returns first existing instance in self with equal name.