Skip to content

Commit

Permalink
append to scene update on default inputs
Browse files Browse the repository at this point in the history
allows to work with model chain easier
  • Loading branch information
shirubana committed Aug 4, 2022
1 parent 57b141e commit 414360d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions bifacial_radiance/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2247,7 +2247,7 @@ def makeScene(self, module=None, sceneDict=None, radname=None,
self.radfiles = [sceneRAD]
return self.scene

def appendtoScene(self, radfile=None, customObject=None, text=''):
def appendtoScene(self, radfile=None, customObject=None, text='!xform -rz 0 '):
"""
Appends to the `Scene radfile` in folder `\objects` the text command in Radiance
lingo created by the user.
Expand All @@ -2260,8 +2260,10 @@ def appendtoScene(self, radfile=None, customObject=None, text=''):
customObject : str
Directory and name of custom object .rad file is stored
text : str
Command to be appended to the radfile. Do not leave empty spaces
at the end.
Command that starts the appended file to the radfile so Radiance
can properly load the object. Default
is set to not modify the object added (rotation by 0).
Default includes a space already at the end.
Returns
-------
Expand All @@ -2270,9 +2272,9 @@ def appendtoScene(self, radfile=None, customObject=None, text=''):
"""

#TODO: Add a custom name and replace radfile name

# py2 and 3 compatible: binary write, encode text first
text2 = '\n' + text + ' ' + customObject
text2 = '\n' + text + customObject

debug = False
if debug:
Expand Down

0 comments on commit 414360d

Please sign in to comment.