"Caso queira adicionar varias linhas de forma rapida, tecle space apos clicar no + ." "Para remover shots, selecione as linhas que deseja remover e click no - .", defaultValue=StringVectorData([""]), ), ] ) def doOperation(self, operands): job = pipe.admin.job(operands["jobIndex"].value, operands["jobName"].value) job.mkroot() for each in operands["shots"]: if each: job.mkshot("shots/%s" % each) for each in operands["assets"]: if each: job.mkshot("assets/%s" % each) job.client(operands["client"].value) job.data({"output": operands["defaultOutput"].value}) result = job.create() print result return StringData(result) registerRunTimeTyped(mkjob)
defaultValue=StringVectorData(['']), ), ]) def doOperation(self, operands): job = pipe.admin.job(operands["jobIndex"].value, operands["jobName"].value) job.mkroot() for each in operands["shots"]: if each: job.mkshot("shots/%s" % each) for each in operands["assets"]: if each: job.mkshot("assets/%s" % each) job.client(operands["client"].value) job.data({ 'output': operands["defaultOutput"].value, }) result = job.create() print result return StringData(result) registerRunTimeTyped(mkjob)
param = self[ name ] paramValue = value[ name ] if name in self.__obligatoryParameterNames or not isinstance( paramValue, IECore.NullObject ): ( valid, msg ) = param.valueValid( paramValue ) if not valid: return ( False, ("Error in parameter %s: " % name) + msg ) return (True, "") ## Smart getattr # Tries to use original CompoundParameter.__getattr__. If it fails, then try the local object dictionary. def __getattr__( self, attrName ): try: return IECore.CompoundParameter.__getattr__( self, attrName ) except: return self.__dict__[ attrName ] ## Smart setattr # Tries to use original CompoundParameter.__getattr__. If it fails, then try the local object dictionary. def __setattr__( self, attrName, attrValue ): try: parameter = IECore.CompoundParameter.__getattr__( self, attrName ) except: self.__dict__[ attrName ] = attrValue else: parameter.smartSetValue( attrValue ) registerRunTimeTyped( OptionalCompoundParameter )