Example #1
0
def cmd_image(filename, device="", options=""):
    soho.makeFilePathDirsIfEnabled(filename)
    args = []
    if device:
        args.append("-f")
        args.append(device)
    if options:
        options = ' ' + options
    args.append(filename)
    istr = soho.arrayToString('cmd_image ', args, options)
    soho.indent(1, istr, None)
Example #2
0
 def as_str(self):
     """Returns param as a string suitable for a pbrt scene file"""
     return soho.arrayToString('"%s" [ ' % self.type_name, self.value, " ]")
Example #3
0
 def as_str(self):
     """Returns param as a string suitable for a pbrt scene file"""
     # self.type != "bool" is because we don't want our true/false values
     # wrapped in quotes. (This wasn't the case in pbrt-v3)
     return soho.arrayToString('"%s" [ ' % self.type_name, self.value, " ]",
                               self.type != "bool")
Example #4
0
 def value_str(self):
     return soho.arrayToString("", self.value, "", self.type != "bool")