Paste the properties from one source to another with python

In ParaView I can copy the properties of a source and paste them in another source.

I have been using the Start Trace functionality, but doesn’t seem to save this part.

How can I do that with Python?

I tried getting the DisplayProperties and paste them in the other source with no success.

# find source
initialize = FindSource('Initialize')

display = GetDisplayProperties(initialize, volumenView)

# find source
other = FindSource('Other')

Another thing I tried, was copying each property.

initialize = FindSource('Initialize')
translate = GetProperty("Translate")

But in this example, all I get is none.

Indeed, the Copy/Paste mechanism is not properly traced, looks like a bug to me.

In the meantime, you can copy them manually in Python.