View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0005083 | Scribus | Scripter | public | 2007-01-05 00:54 | 2008-01-25 23:40 |
Reporter | djcarr | Assigned To | jghali | ||
Priority | normal | Severity | feature | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.3.3.7cvs | ||||
Fixed in Version | 1.3.3.12svn | ||||
Summary | 0005083: API functions for Opacity | ||||
Description | Can we please have API functions to access the Opacity settings in scripts? They would seem to be very similar to the existing Shade functions, so might look like this: setFillOpacity(opacity, ["name"]) setLineOpacity(opacity, ["name"]) setTextOpacity(opacity, ["name"]) getFillOpacity(["name"]) -> integer getLineOpacity(["name"]) -> integer getTextOpacity(["name"]) -> integer where the integer is from 0 (completely transparent) to 100 (completely opaque). | ||||
Tags | No tags attached. | ||||
Patch | |||||
|
Still missing in 1.3.3.9 I am working on an improved CalendarWizard.py to contribute back to the project, and these API commands would be much appreciated. Thank you! |
|
I backported the scripter functions for opacity from 1.3.5svn: setFillTransparency(trans, ["name"]) setLineTransparency(trans, ["name"]) getFillTransparency(["name"]) -> double getLineTransparency(["name"]) -> double Some precisions : transis a number between 0.0 and 1.0 + those functions should have been called "Opacity" and not "Transparency" as they truly get/set the opacity and not the transparency. That gonna probably change in a future release No getTextTransparency/setTextTransparency, as setting text transparency is currently not supported |
Date Modified | Username | Field | Change |
---|---|---|---|
2007-01-05 00:54 | djcarr | New Issue | |
2007-01-05 01:00 |
|
Status | new => assigned |
2007-01-05 01:00 |
|
Assigned To | => subik |
2007-01-05 01:00 |
|
Product Version | 1.3.3.6 => 1.3.3.7cvs |
2008-01-22 08:30 | djcarr | Note Added: 0018686 | |
2008-01-22 08:38 | djcarr | Note Edited: 0018686 | |
2008-01-24 23:14 | jghali | Assigned To | subik => jghali |
2008-01-24 23:24 | jghali | Status | assigned => resolved |
2008-01-24 23:24 | jghali | Fixed in Version | => 1.3.3.12svn |
2008-01-24 23:24 | jghali | Resolution | open => fixed |
2008-01-24 23:24 | jghali | Note Added: 0018713 | |
2008-01-25 23:40 | cbradney | Status | resolved => closed |