Added `id_add` to `render_3d` to change the %i expansion

- Closes #110
This commit is contained in:
Salvador E. Tropea 2021-11-18 14:04:44 -03:00
parent 1bb8a56209
commit 22b946ecf1
1 changed files with 3 additions and 1 deletions

View File

@ -71,6 +71,8 @@ class Render3DOptions(Base3DOptions):
""" Image height (aprox.) """
self.orthographic = False
""" Enable the orthographic projection mode (top view looks flat) """
self.id_add = ''
""" Text to add to the %i expansion content. To differentiate variations of this output """
super().__init__()
self._expand_ext = 'png'
@ -80,7 +82,7 @@ class Render3DOptions(Base3DOptions):
view = self._views.get(self.view, None)
if view is not None:
self.view = view
self._expand_id += '_'+self._rviews.get(self.view)
self._expand_id += '_'+self._rviews.get(self.view)+self.id_add
def run(self, output):
super().run(output)