color palettes problem

Welcome to the Avolites Personality Builder Forum.

Moderator: Moderators

phedias
Posts: 28
Joined: 09 Feb 2016, 11:10

color palettes problem

Postby phedias » 30 Mar 2017, 14:31

Hi everyone. The below problem keeps me busy for a long time but still didn't figure out what the problem is. I will appreciate if anyone can help me!!!!!
Here is a personality that i created my self. It works fine except when i come to the point to create color palettes then the palettes are get confused and mix the colors.e.g in red palette i get the red in green i get the gree but in blue i get blue+white or from white if i go back to green then i have green + white. Any idea?

Code: Select all

; 'user wless', 8 DMX Channels, filename: WLESS.R20
;  Copyright © Avolites Ltd. 2017
;
;   Date       By                Description
;   02-01-17   Phedias           Created
;   02-01-17   Pers Creator      Created - Exported from Diamond 4 file.
;
;----------------------------------------------------------------------------
; The device name, upto 11 characters, no spaces are allowed
DEVICE  wless                               mode=Standard  8 DMX Channels
NAME "user" "wless"
;
;----------------------------------------------------------------------------
; The Type of instrument, 1 & M must required for backward compatibility
; The middle number denotes the number of DMX channels used
TYPE  1  8  M
;
;----------------------------------------------------------------------------
; Mirror/Head resolution
MIRROR  0    0    0
;       |    |    |
;       |    |    |_______ maximum tilt movement (in degrees)
;       |    |____________ maximum pan movement (in degrees)
;       |_________________ 1 means moving mirror, 2 means moving head
;
;----------------------------------------------------------------------------
; Patching Information. (Upto 10 lines allowed)
; Upto 10 lines of 159 chars are allowed including formulae
; Variables used d=dmx number(1..512), h=handle(1..60), n=devicename (11-char)
; Allowed modifiers
;   +,-,*,/,(,) basic arithmatic
;   % means remainder after divide
;   & means logical AND
;   | means logical OR
;   R means reverse the bits of the current result (operates on a byte)
;   ^ means logical Exclusive OR (operates on a byte)
;   > means shift to the right
;   < shift to the left
;   r followed by number means get the value of that parameter
;   d DMX address
;   n Fixture name, a 0 terminated character string
;   h The handle number
DEVICEADDRESS
"Handle  %2d"h
"Fixture %11s"n
"DMX     %03d"d
""
""
"Set to Standard"
""
""
DAEND
;
;----------------------------------------------------------------------------
; Specify DMX limits
;
; minimum allowed dmx number
MINDMX=1
;
; maximum allowed dmx number
MAXDMX=504
;
; DMX number must be divisible by this
DIVBY=1
;
;----------------------------------------------------------------------------
; DMX channel description
;
; Column by column description of each DMX channel
; 1. The channels bank number (1..20)
; 2. The upper faders in the bank (1) or the lower faders in the bank (61)
; 3. Channel type (L=LTP, H=HTP, I=Instant LTP, S=16-bit instant LTP,
;    s=16-bit Fadeable LTP
; 4. DMX offset (1..number of DMX channels)
; 5. The output level is proportionally reduced by this level (0..100%)
; 6. The curve number (applicable only to HTP channels), usually set to 1
; 7. Inverted (I) or Normal (N)
; 8. Attribute type (A=Colour Wheel 1, B=Cyan, C=Magenta, D=Yellow,
;         E=Pan, F=Tilt, G=Iris, H=Dimmer, I=Gobo1, J=Gobo2, K=Gobo1 Rotate,
;         L=Focus, M=Gobo2 Rotate, N=Colour Wheel 2, O=Shutter, P=Prism, Q=Zoom,
;         R=Effect Rotate, S=Frost, T=Red, U=Green, V=Blue, 0=uncategorised)
; 9. Checksum channel (Always 1)
;10. Attribute name, must be enclosed in quotes and upto 12 characters allowed
;11. The ON value of this channel (0..255)
;12. The Highlight level of this channel
;13. The Lowlight level of this channel
;
DMX
1     1   H    1   100   1N   H   1   "Dimmer"          255   255   255
2     1   L    2   100   1N   O   1   "Shutter"           0     0     0
2    61   L    3   100   1N   P   1   "Effect"            0     0     0
3     1   L    4   100   1N   T   1   "Red"               0     0     0
3    61   L    5   100   1N   U   1   "Green"             0     0     0
4     1   L    6   100   1N   V   1   "Blue"              0     0     0
4    61   L    7   100   1N   0   1   "White"             0     0     0
5     1   L    8   100   1N   0   1   "Amber"             0     0     0
END
;
;----------------------------------------------------------------------------
TEXT
user wless
Standard

INPUT fixture DMX No.
Press a Fixture
Select or Swop button
to make the patch.
END

ATTR
Function Obsolete
END

;----------------------------------------------------------------------------
; Preset Palette Tables

PFTABLE "Colour"     -1   4   5   6
"Open"                1  FF  FF  FF
"Red"                 2  FF   0   0
"Amber"               3  FF  7F   0
"Yellow"              4  FF  FF   0
"Green"               5   0  FF   0
"Cyan"                6   0  FF  FF
"Blue"                7   0   0  FF
"Purple"              9  7F   0  FF
"Magenta"            10  FF   0  FF
"Lavender"            8  B5  6D  EF
"Open"                1  FF  FF  FF
"Red"                 2  FF   0   0
"Amber"               3  FF  7F   0
"Yellow"              4  FF  FF   0
"Green"               5   0  FF   0
"Cyan"                6   0  FF  FF
"Blue"                7   0   0  FF
"Purple"              9  7F   0  FF
"Magenta"            10  FF   0  FF
"Lavender"            8  B5  6D  EF
PFEND

;----------------------------------------------------------------------------
; Macros

;----------------------------------------------------------------------------
; Range Tables

; Column by column description...
; 1. Low DMX value (inclusive)
; 2. High DMX value (inclusive)
; 3. Displayed text (max 11 chars)
; Variables used a=low val, b=high val, c=DMX val

RANGE 2  ;Shutter
0   0    "Closed"
1   255  "Open"
REND

RANGE 4  ;Red
0   255  "%3d.%d%%"(c-a)*100/(b-a),10*((c-a)*100%(b-a))/(b-a)
REND

RANGE 5  ;Green
0   255  "%3d.%d%%"(c-a)*100/(b-a),10*((c-a)*100%(b-a))/(b-a)
REND

RANGE 6  ;Blue
0   255  "%3d.%d%%"(c-a)*100/(b-a),10*((c-a)*100%(b-a))/(b-a)
REND

RANGE 7  ;White
0   255  "%3d.%d%%"(c-a)*100/(b-a),10*((c-a)*100%(b-a))/(b-a)
REND

RANGE 8  ;Amber
0   255  "%3d.%d%%"(c-a)*100/(b-a),10*((c-a)*100%(b-a))/(b-a)
REND
Last edited by niclights on 30 Mar 2017, 14:48, edited 1 time in total.
Reason: added code tags to make it easier to read and copy/paste
User avatar
niclights
The eManual
Posts: 4442
Joined: 24 Sep 2004, 01:06
Location: UK

Re: color palettes problem

Postby niclights » 30 Mar 2017, 15:10

I think this is not a problem with the palettes but with the way they are being applied (in conjunction with the way the wheel slots have been allocated and the default mask).

In the Classic software palettes are recalled according to the selected attribute bank and its associated mask.

By default, the 'Dimmer' attribute bank includes all attributes. So if you select this before applying the palette they should work as expected. But if you select other banks then, with the way you have currently allocated your wheel slots, only red and green components will recall when you have the pan/tilt attribute bank selected and only blue when you have the colour attribute bank selected. If required you can view and edit the mask in System/User Settings/[Specify Attributes For Bank]. However, personally I would leave it as default and just get in the habit of always returning to the dimmer attribute bank to avoid any filtering. I would suggest moving red/green to the cyan/magenta (10-1, 10-61), blue to yellow (9-61) and amber/white to colour (4-1,4-61) respectively so that at least they are all in the standard colour wheel slots.

You could also add values for white and amber to the palettes - for example if they were set to zero they would ensure the recalled palette will be as expected rather than adding on top of any existing amber/white values. Currently we don't do this in factory palettes but probably should.
phedias
Posts: 28
Joined: 09 Feb 2016, 11:10

Re: color palettes problem

Postby phedias » 31 Mar 2017, 08:00

Dear Nick thank you for your support.
I already follow your instructions and did some corrections (please check below) but the problem seems to be something else instead of that. Maybe I didn't explain the problem clearly on the first topic so I will try again here step by step:
1) I select the fixture and i load the red color. Then I save palette with selecting dimmer channel (instead of just color channel) and I save the palette.
2) I do the same for Green, Blue, white and Amber.
Then I exit and clear the programmer and i select my fixture again just to test my palettes. With my fixture selected and the dimmer channel selected as well i firstly test the red palette and its fine, then green palette and its fine then blue is fine, white is fine and finally amber is fine too!
BUT HERE COMES THE PROBLEM: from amber back to white I get amber + white, from white back to blue I get blue + amber, from blue back to green I get green+ amber+ blue and from green back to red I get red + green + blue + amber !!!!! Any tips are welcome


Code: Select all

; 'user wless', 8 DMX Channels, filename: WLESS.R20
;  Copyright © Avolites Ltd. 2017
;
;   Date       By                Description
;   02-01-17   Phedias           Created
;   02-01-17   Pers Creator      Created - Exported from Diamond 4 file.
;
;----------------------------------------------------------------------------
; The device name, upto 11 characters, no spaces are allowed
DEVICE  wless                               mode=Standard  8 DMX Channels
NAME "user" "wless"
;
;----------------------------------------------------------------------------
; The Type of instrument, 1 & M must required for backward compatibility
; The middle number denotes the number of DMX channels used
TYPE  1  8  M
;
;----------------------------------------------------------------------------
; Mirror/Head resolution
MIRROR  0    0    0
;       |    |    |
;       |    |    |_______ maximum tilt movement (in degrees)
;       |    |____________ maximum pan movement (in degrees)
;       |_________________ 1 means moving mirror, 2 means moving head
;
;----------------------------------------------------------------------------
; Patching Information. (Upto 10 lines allowed)
; Upto 10 lines of 159 chars are allowed including formulae
; Variables used d=dmx number(1..512), h=handle(1..60), n=devicename (11-char)
; Allowed modifiers
;   +,-,*,/,(,) basic arithmatic
;   % means remainder after divide
;   & means logical AND
;   | means logical OR
;   R means reverse the bits of the current result (operates on a byte)
;   ^ means logical Exclusive OR (operates on a byte)
;   > means shift to the right
;   < shift to the left
;   r followed by number means get the value of that parameter
;   d DMX address
;   n Fixture name, a 0 terminated character string
;   h The handle number
DEVICEADDRESS
"Handle  %2d"h
"Fixture %11s"n
"DMX     %03d"d
""
""
"Set to Standard"
""
""
DAEND
;
;----------------------------------------------------------------------------
; Specify DMX limits
;
; minimum allowed dmx number
MINDMX=1
;
; maximum allowed dmx number
MAXDMX=504
;
; DMX number must be divisible by this
DIVBY=1
;
;----------------------------------------------------------------------------
; DMX channel description
;
; Column by column description of each DMX channel
; 1. The channels bank number (1..20)
; 2. The upper faders in the bank (1) or the lower faders in the bank (61)
; 3. Channel type (L=LTP, H=HTP, I=Instant LTP, S=16-bit instant LTP,
;    s=16-bit Fadeable LTP
; 4. DMX offset (1..number of DMX channels)
; 5. The output level is proportionally reduced by this level (0..100%)
; 6. The curve number (applicable only to HTP channels), usually set to 1
; 7. Inverted (I) or Normal (N)
; 8. Attribute type (A=Colour Wheel 1, B=Cyan, C=Magenta, D=Yellow,
;         E=Pan, F=Tilt, G=Iris, H=Dimmer, I=Gobo1, J=Gobo2, K=Gobo1 Rotate,
;         L=Focus, M=Gobo2 Rotate, N=Colour Wheel 2, O=Shutter, P=Prism, Q=Zoom,
;         R=Effect Rotate, S=Frost, T=Red, U=Green, V=Blue, 0=uncategorised)
; 9. Checksum channel (Always 1)
;10. Attribute name, must be enclosed in quotes and upto 12 characters allowed
;11. The ON value of this channel (0..255)
;12. The Highlight level of this channel
;13. The Lowlight level of this channel
;
DMX
 1     1   H    1   100   1N   H   1   "Dimmer"          255   255   255
 2     1   L    2   100   1N   O   1   "Shutter"           0     0     0
 2    61   L    3   100   1N   P   1   "Effect"            0     0     0
10     1   L    4   100   1N   T   1   "Red"               0     0     0
10    61   L    5   100   1N   U   1   "Green"             0     0     0
 9    61   L    6   100   1N   V   1   "Blue"              0     0     0
 4    61   L    7   100   1N   0   1   "White"             0     0     0
 4     1   L    8   100   1N   0   1   "Amber"             0     0     0
END
;
;----------------------------------------------------------------------------
TEXT
user wless
Standard

INPUT fixture DMX No.
Press a Fixture
Select or Swop button
to make the patch.
END

ATTR
Function Obsolete
END

;----------------------------------------------------------------------------
; Preset Palette Tables

PFTABLE "Colour"     -1   4   5   6
"Open"                1  FF  FF  FF
"Red"                 2  FF   0   0
"Amber"               3  FF  7F   0
"Yellow"              4  FF  FF   0
"Green"               5   0  FF   0
"Cyan"                6   0  FF  FF
"Blue"                7   0   0  FF
"Purple"              9  7F   0  FF
"Magenta"            10  FF   0  FF
"Lavender"            8  B5  6D  EF
"Open"                1  FF  FF  FF
"Red"                 2  FF   0   0
"Amber"               3  FF  7F   0
"Yellow"              4  FF  FF   0
"Green"               5   0  FF   0
"Cyan"                6   0  FF  FF
"Blue"                7   0   0  FF
"Purple"              9  7F   0  FF
"Magenta"            10  FF   0  FF
"Lavender"            8  B5  6D  EF
PFEND

;----------------------------------------------------------------------------
; Macros

;----------------------------------------------------------------------------
; Range Tables

; Column by column description...
; 1. Low DMX value (inclusive)
; 2. High DMX value (inclusive)
; 3. Displayed text (max 11 chars)
; Variables used a=low val, b=high val, c=DMX val

RANGE 2  ;Shutter
0   0    "Closed"
1   255  "Open"
REND

RANGE 4  ;Red
0   255  "%3d.%d%%"(c-a)*100/(b-a),10*((c-a)*100%(b-a))/(b-a)
REND

RANGE 5  ;Green
0   255  "%3d.%d%%"(c-a)*100/(b-a),10*((c-a)*100%(b-a))/(b-a)
REND

RANGE 6  ;Blue
0   255  "%3d.%d%%"(c-a)*100/(b-a),10*((c-a)*100%(b-a))/(b-a)
REND

RANGE 7  ;White
0   255  "%3d.%d%%"(c-a)*100/(b-a),10*((c-a)*100%(b-a))/(b-a)
REND

RANGE 8  ;Amber
0   255  "%3d.%d%%"(c-a)*100/(b-a),10*((c-a)*100%(b-a))/(b-a)
REND
Last edited by niclights on 31 Mar 2017, 09:28, edited 1 time in total.
Reason: added code tags
User avatar
niclights
The eManual
Posts: 4442
Joined: 24 Sep 2004, 01:06
Location: UK

Re: color palettes problem

Postby niclights » 31 Mar 2017, 09:33

My apologies. Originally I thought you were talking about the 'preset' palettes in the personality.

Almost certainly here the problem is that you have not included all of the components when recording.

For recording palettes (and cues) usually you need to ensure all of the controls are in the programmer before you record. So for a red palette you must set red full, green zero, blue zero (and optionally amber and white at zero) in the programmer and then record.

If, for example you only record red at full then when you recall it will only recall red and leave the others at the value they are currently at. So if they are currently at zero it will look red and appear ok, but if blue was at full then recalling this red palette would result in magenta.
phedias
Posts: 28
Joined: 09 Feb 2016, 11:10

Re: color palettes problem

Postby phedias » 31 Mar 2017, 13:01

Hi Nick and thanks for getting back with a suggestion!
I am actually doing exactly as you suggest for long time now and even i have the fixture connected and i can visualize what i record in the palette. I record everything correctly but Still have the same problem. when i choose palettes backwards from amber descending to red the console mix the colors as i describe in the first post! I even try my personality on another console exactly identical (pearl tiger classic) and the fixture and personality reacts same way SOS !!!!
User avatar
niclights
The eManual
Posts: 4442
Joined: 24 Sep 2004, 01:06
Location: UK

Re: color palettes problem

Postby niclights » 31 Mar 2017, 13:21

When I test this using your personality in the Pearl 2004 Simulator it all appears to work as I would expect:

- Wipeall
- Program mode
- Patch 1x fixture with auto palettes off.
- Open DMX Patch view to check the output values
- Select fixture and wheel red to full, green to zero, blue to zero
- Select dimmer attribute bank
- Store Palette, select preset handle 1
- (without clearing) wheel red to zero, green to full
- Select dimmer attribute bank
- Store Palette, select preset handle 2
- (without clearing) wheel green to zero, blue to full
- Select dimmer attribute bank
- Store Palette, select preset handle 3
- Select preset palette handle 1

= Red 255, Green 0, Blue 0.

- Select preset palette handle 2

= Red 0, Green 255, Blue 0.

- Select preset palette handle 3

= Red 0, Green 0, Blue 255.
phedias
Posts: 28
Joined: 09 Feb 2016, 11:10

Re: color palettes problem

Postby phedias » 31 Mar 2017, 13:46

thank you i will check all the suggested steps.Only one question before to proceed please:
You suggest - Patch 1x fixture with auto palettes off.That means during patching when the console ask if i want to use presets pallets i should select NO?
User avatar
niclights
The eManual
Posts: 4442
Joined: 24 Sep 2004, 01:06
Location: UK

Re: color palettes problem

Postby niclights » 31 Mar 2017, 13:54

Yes, that is what I mean. You don't have to but I did as I only wanted to check recording palettes. If you say 'YES' then it will add the palettes defined in the personality to some of the preset palette handles.

Who is online

Users browsing this forum: No registered users and 13 guests