Hi,
I changed my background from black to white. Unfortunately some layer colors are now hard to see on the white background. So I am looking for a scripting example to alter the layer colors for my existinng drawings. Or does anyone know an easier way?
Regards
QCAD Professional
Version: 3.26.1.0 (3.26.1)
Build Date: Mar 8 2021
Revision: eec8166
Qt Version: 5.13.2
Architecture: x86_64
[Solved] Layer scripting
Moderator: andrew
Forum rules
Always indicate your operating system and QCAD version.
Attach drawing files, scripts and screenshots.
Post one question per topic.
Always indicate your operating system and QCAD version.
Attach drawing files, scripts and screenshots.
Post one question per topic.
[Solved] Layer scripting
Last edited by pogocad on Tue Mar 16, 2021 11:21 am, edited 1 time in total.
- petevick
- Premier Member
- Posts: 392
- Joined: Tue May 19, 2020 9:34 am
- Location: North Norfolk coast UK
Re: Layer scripting
would the Color Adjustment setting help you in Application Preferences>Graphics View>Appearance
Pete Vickerstaff
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6
Re: Layer scripting
Hi,
for an example of a script that alters layer colors see the 'all in one' variant here:
https://qcad.org/rsforum/viewtopic.php?t=7865
This script has two stages as required by the user in the topic.
The first RModifyObjectsOperation changes any layer with 'whiteColor' to 'blackColor'
In your case that might test for more colors.
Color names or RGB values, names are SVG names ... CAD "green" = "lime" ...
Regards,
CVH
for an example of a script that alters layer colors see the 'all in one' variant here:
https://qcad.org/rsforum/viewtopic.php?t=7865
This script has two stages as required by the user in the topic.
The first RModifyObjectsOperation changes any layer with 'whiteColor' to 'blackColor'
In your case that might test for more colors.
Color names or RGB values, names are SVG names ... CAD "green" = "lime" ...
Regards,
CVH
Re: Layer scripting
Hi
thanks for the hint. The first part of the script does what i looking for.
Regards
thanks for the hint. The first part of the script does what i looking for.
Regards