Skip to content
Snippets Groups Projects
Commit b41c872f authored by Paul McCarthy's avatar Paul McCarthy
Browse files

Modulate transformation function is going to be given either an Image

object, or 'none' - fixed
parent 183ebde1
No related branches found
No related tags found
No related merge requests found
...@@ -306,6 +306,10 @@ HELP = td.TypeDict({ ...@@ -306,6 +306,10 @@ HELP = td.TypeDict({
# complicated property transformations (i.e. # complicated property transformations (i.e.
# non-reversible ones), you'll need to have # non-reversible ones), you'll need to have
# an inverse transforms dictionary # an inverse transforms dictionary
def _modTrans(i):
if i == 'none': return None
else: return i.imageFile
TRANSFORMS = td.TypeDict({ TRANSFORMS = td.TypeDict({
'SceneOpts.showCursor' : lambda b: not b, 'SceneOpts.showCursor' : lambda b: not b,
'OrthoOpts.showXCanvas' : lambda b: not b, 'OrthoOpts.showXCanvas' : lambda b: not b,
...@@ -317,7 +321,7 @@ TRANSFORMS = td.TypeDict({ ...@@ -317,7 +321,7 @@ TRANSFORMS = td.TypeDict({
# when reading in command line arguments - # when reading in command line arguments -
# this transform function is only used when # this transform function is only used when
# generating arguments # generating arguments
'VectorOpts.modulate' : lambda i: i.imageFile, 'VectorOpts.modulate' : _modTrans,
}) })
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment