Clipboard copy-paste scripts for DMXIS

Discuss macro programming, and post any new macros here!
kallepaa
Posts: 9
Joined: Wed Feb 01, 2017 6:36 am

Clipboard copy-paste scripts for DMXIS

Post by kallepaa »

Clipboard.zip
Clipboard Macro Scripts
(3.31 KiB) Downloaded 631 times
Hi,

Here are my clipboard scripts for DMXIS, one for copying and one for pasting. With these you can copy all channel values (oscillator, sound tracker, etc..) to another channel(s). They should work out of the box with Mac, but for Windows you should at least edit the clipboard file path in the scripts (Haven't tested this with Windows, but I guess it should work). Unfortunately I could not get the temp file libraries working so this is why the path is hard coded.

I suggest that you unzip the packet to the macros folder of DMXIS so that both of the scripts will appear under a Clipboard folder.

There are few tricks I included to the script that you should know:

When pasting to single channel, the copied channels are pasted as they were.
For example if you copied channels 1, 3 and 4, and paste to channel 5, channels are copied like this:
1 => 5, 3 => 7, 4 => 8. So you can copy some channels of a fixture to another and leave some out in the middle.

But when you select multiple channels for pasting, the clipboard will be looped until all selected channels have been edited.
So if you copy RGB values of one fixture, then select RGB values of all the other fixtures and paste.. Presto! All the fixtures now have the same RGB values.

I hope you find these scripts useful!
Maybe some day we can get the same functionality under Cmd-C and Cmd-V shortcuts.

Br, Kalle
BSmithrian
Posts: 3
Joined: Sun Oct 25, 2015 3:44 am

Re: Clipboard copy-paste scripts for DMXIS

Post by BSmithrian »

Thanks for the script.
I can't find the clipboard file path for windows 10.
So I still can't get it to work.
Does anyone know what path to use for windows 10?
kallepaa
Posts: 9
Joined: Wed Feb 01, 2017 6:36 am

Re: Clipboard copy-paste scripts for DMXIS

Post by kallepaa »

Try this:

Code: Select all

clipboardfile = "C:\\Users\\{Username}\\AppData\\Local\\Temp\\dmxis_clipboard"
Just replace {Username} with your windows username.

Actually you can use any file as long as it is not used by any other application.
For example you can create a "tmp" folder to C: root and use this path:

Code: Select all

clipboardfile = "C:\\tmp\\dmxis_clipboard"
Just make sure that DMXIS has the read and write privileges to the folder/file.

I hope this helps.
agent9
Posts: 16
Joined: Sun Dec 23, 2012 9:31 pm

Re: Clipboard copy-paste scripts for DMXIS

Post by agent9 »

Thanks you for this. Its making life easier.
Steve E
Posts: 23
Joined: Tue Aug 27, 2019 7:35 am
Location: Perth, Western Australia

Re: Clipboard copy-paste scripts for DMXIS

Post by Steve E »

Wonderful! Thank you so much for this macro, kallepaa!

I can confirm on Windows 10 that the ' clipboardfile = "C:\\Users\\{Username}\\AppData\\Local\\Temp\\dmxis_clipboard" ' path works whereas the generic ' clipboardfile = "C:\\tmp\\dmxis_clipboard" ' path did not work for me.

Cheers
User avatar
dadov
Posts: 11
Joined: Tue Dec 10, 2019 12:57 am

Re: Clipboard copy-paste scripts for DMXIS

Post by dadov »

Thx ! very useful
HellishVictor
Posts: 51
Joined: Fri Jun 06, 2014 8:38 am

Re: Clipboard copy-paste scripts for DMXIS

Post by HellishVictor »

Awesome! it should come already installed on Macros folder by default.
Cheers.
RyanMcRobb
Posts: 36
Joined: Sat May 30, 2020 2:40 am
Has thanked: 3 times

Re: Clipboard copy-paste scripts for DMXIS

Post by RyanMcRobb »

This is fantastic!!!!!!
I've already copied a bunch of my fancy RBGWAUV colours to my new RGBWAUV fixtures!!!!!

Saved heaps of time.

Thankyou so much
RyanMcRobb
Posts: 36
Joined: Sat May 30, 2020 2:40 am
Has thanked: 3 times

Re: Clipboard copy-paste scripts for DMXIS

Post by RyanMcRobb »

I also discovered that the Copy/Paste macro works across different shows.
eg
Copy Channels 1-13 in Show File #1
Paste Channels 97-100 in Show File #2

Cool!
pete1989
Posts: 1
Joined: Mon Jun 01, 2020 3:46 pm

Re: Clipboard copy-paste scripts for DMXIS

Post by pete1989 »

Hi all,

I am experiencing the same setup problems on Windows 10 as the OP.

I have edited the .PY copy and paste files in Notepad so that the path given is clipboardfile = "C:\\Users\\{username}\\AppData\\Local\\Temp\\dmxis_clipboard"

When I select the copy macro in DMXIS for a single channel, that seems to work and the macro output console reads "Copied 1 channels"

However, when I select the paste macro for a new channel nothing happens and the Macro Output Console reads:

Traceback (most recent call last):
File "C:\Program Files (x86)/ENTTEC/DMXIS/Macros//Clipboard/PasteChannel.py", line 24, in <module>
import os.path
ImportError: No module named os.path

Can anybody please shed some light on where I might have gone wrong?

Many thanks!

[highlight]Just to update I realised my failure was all operator error! I had inadvertently deleted the Python folder from the Macros just after extracting the original zip file. After reinstalling DMXIS and repeating the path edit, Paste now works fine. Thank you for a brilliant extra kallepaa! [/highlight]
FAster77
Posts: 3
Joined: Sat Dec 07, 2019 2:02 pm

Re: Clipboard copy-paste scripts for DMXIS

Post by FAster77 »

I used this macro in Showbuddy Active with mojave, worked great! but now I'm on a new machine with macos catalina..

Even when I try to just copy one channel to another I get "Error: not enough channels available!"

Can somebody help me?

thanks in advance
Four12 Acoustics
Posts: 8
Joined: Tue Jun 23, 2020 2:51 pm

Re: Clipboard copy-paste scripts for DMXIS

Post by Four12 Acoustics »

I am 100% lost! I don't understand this at all!! What do I do first? I got the copy and paste .py files and saved them under the macros within DMXIS but I have no clue what to do with them. Does anyone have a video of this by chance?
kallepaa
Posts: 9
Joined: Wed Feb 01, 2017 6:36 am

Re: Clipboard copy-paste scripts for DMXIS

Post by kallepaa »

@FAster77
I can't test this macro with all operating systems, but I just installed this myself to my mac with macOS Mojave 10.14.6 and seems to be working.. unfortunately I don't have Catalina.
But if you have problems with the macro, post the macro output console logs to this thread, and I'll try to fix it at some point.

@Four12 Acoustics
Basically just select some channel(s), then click Macros -> Clipboard -> CopyChannel.
Then select the channel(s) where you want to paste and click Macros -> Clipboard -> PasteChannel
More details in the top of this thread.

And sorry all for the late response.
User avatar
dadov
Posts: 11
Joined: Tue Dec 10, 2019 12:57 am

Re: Clipboard copy-paste scripts for DMXIS

Post by dadov »

Hello,
I searched the forum but couldn't find a simple answer.
I'm just trying to copy / paste a channel with all its respective settings in all pressets.
I just want to double let's say a channel (fader) without having to overwrite all the presets.
Thank you for your help.
Post Reply