Beispiel #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)
Beispiel #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, " ]")
Beispiel #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")
Beispiel #4
0
 def value_str(self):
     return soho.arrayToString("", self.value, "", self.type != "bool")