Download

Is it possible to Copy/Paste with Python API?

Is it possible to copy/paste with the python API?

For example, if I have two unreal sessions open, I can Edit → Copy, which will give me a text version of whatever I have selected. (You can paste it in a simple notepad)
Then you can take that text, modify it if you like, and paste it into another Unreal session.
I’m looking to perform the same task with python. Just a copy/paste.

Have you tried modifying the clipboard text?

Thanks for your reply. I could not generate the text in the first place or get it to the clipboard because there seems to be no way to copy in the python API. I have no idea how I would copy the actor. The route I ended up taking was to stream in the source and destination level, move the desired actors, then close the source level without saving it.