Author Topic: Super-Simple Control of Layers  (Read 4142 times)

samdavo

  • Hero Member
  • *****
  • Posts: 2587
  • the trick is knowin...^ > v < - which way's up?
Re: Super-Simple Control of Layers
« Reply #15 on: May 10, 2013, 04:19:02 AM »
Sorry, I have to post a revision to that macro that sets all layers to visible and edible.  i.e.    a.d3m
This  gets it back to be the same as the one I enclosed with the first post on this thread, i.e.  I made an error trying to improve it :)

There was an error that changed the colour when you used this - and the proper use of this macro involves it continuing with the same layer and colour ( in terms of working layer),  just that you can select all layers. 

see the note   "  'delete 3 lines here which incorrectly changed working colour    "   

Code: [Select]
'macro a.d3m (amended 20130510) sets all layers to be visible and editable

for j = 0 to 2000
layer(j) = 6
next j
layer(sys(3))=14
sys(26)=0

' delete three line here which incorrectly changed working colour   
'point =purple
sys(312)=130
sys(313)=0
sys(314)=255

'cursor =purple
sys(331)=130
sys(332)=0
sys(333)=255

'set rubberband = purple
sys(306)=130
sys(307)=0
sys(308)=255

'set selection rubberband to purple
sys(324)=130
sys(325)=0
sys(326)=255


'selection to purple
sys(315)=130
sys(316)=0
sys(317)=255
« Last Edit: May 10, 2013, 04:20:52 AM by samdavo »

samdavo

  • Hero Member
  • *****
  • Posts: 2587
  • the trick is knowin...^ > v < - which way's up?
Re: Super-Simple Control of Layers
« Reply #16 on: October 04, 2013, 07:55:09 AM »
Just checking that those layers and colours still being selected accurately, and I believe they are (albeit brown where I used to use yellow).  Note that I have deleted the "Assign Colour" option for all layers, and only use macros to a) change colour, and b) change (corresponding) layer.    The macro also changes the rubber band colour (all as posted above).     

Layers 1 to 9 can be selected by typing a key 1 to 9 resp  (needless to say you have to add them to the keboard hotkeys :) )  But I add those macros in a zipfile (again / tidied up).

That way, it is kept simple and doesn't get confused between colours as drawn / active colours / and assigned colour for a given layer.
 
Nothing really new - just that I thought I'd correct that point. 
cheers

PS I add a colour chart showing the origin of 7 of the colours anyway.
I use 1 = 255.255.255 ( and note that it shows white on black or grey background, but black on white background)
2 = 255.000.000
3 = 255.130.000
4 = 000.255.000
5 = 000.255.255
6 = 255.000.255
7 = 000.000.255
8 = 146.146.170
9 = 130.000.255 (but this is what I usually use for "selection")
cheers
« Last Edit: October 04, 2013, 07:57:15 AM by samdavo »