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)
def as_str(self): """Returns param as a string suitable for a pbrt scene file""" return soho.arrayToString('"%s" [ ' % self.type_name, self.value, " ]")
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")
def value_str(self): return soho.arrayToString("", self.value, "", self.type != "bool")