macro commands

This is a place for people to chare the custom macros they have written.

Moderator: Moderators

User avatar
yyy898
Posts: 129
Joined: 28 Jun 2014, 17:52

macro commands

Postby yyy898 » 10 Dec 2016, 17:12

Hi,
what is the best way to use api.avolites.com ?
there is a list of all macro commands but if i need a macro to for example exchange a fixture which is according to the website:
Void ExchangeFixtures(System.Collections.Generic.List`1[Avolites.Titan.Controllers.HandleReference], System.String, System.String, System.String, Boolean, Boolean, Boolean)

how do i use this in the <step></step of the macro i am making ?
User avatar
Gregory
Posts: 1301
Joined: 14 Dec 2007, 15:25
Location: London, United Kingdom
Contact:

Re: macro commands

Postby Gregory » 20 Dec 2016, 16:45

The ExchangeFixtures documentation was missing some of the information about the parameters which I have now corrected. The line you copied shows you the type for each parameter, unfortunately in this case the first parameter is a list of handle references and I don't know of any way you can create this in a macro.

To give you an idea this is how it would appear in a macro:

Code: Select all

<step>Fixtures.ExchangeFixtures(Fixtures.ConflictingHandles, "Robe", "ColorSpot 1200 AT", "Mode 2, 32 DMX", true, false, false)</step>

The property Fixtures.ConflictingHandles is valid however this is only set when you attempt to patch over the top of existing fixtures in the Patch menu.
User avatar
yyy898
Posts: 129
Joined: 28 Jun 2014, 17:52

Re: macro commands

Postby yyy898 » 27 Dec 2016, 19:18

ok, so exchanging a fixture with a macro can't be done, how about importing pallets from another showfile using this macro's:

Void ImportShowInformation(Avolites.Acw.Titan.Show.AcwPathDeviceKey)
Void TransferHandles(System.String, Int32)

how do i do that ?

Who is online

Users browsing this forum: No registered users and 10 guests