def getPropClrMap(self, tmrootnode, clrpropname): clrmap = TMColorMap(minclr=(0, 255, 0), maxclr=(255, 0, 0)) minval = tmrootnode.minclr(clrpropname) maxval = tmrootnode.maxclr(clrpropname) neutralval = self.getNeutralVal(clrpropname, minval, maxval) clrmap.setlimits(minval, maxval, neutralval=neutralval) return clrmap
def getPropClrMap(self, tmrootnode, clrpropname): clrmap = TMColorMap(minclr=(0, 255, 0), maxclr=(255, 0, 0)) minval = tmrootnode.minclr(clrpropname) maxval = tmrootnode.maxclr(clrpropname) neutralval = self.getNeutralVal(clrpropname, minval, maxval) clrmap.setlimits(minval, maxval, neutralval=neutralval) return (clrmap)
def getColormap(self,tmrootnode): clrmap = TMColorMap(minclr=(0,255,0),maxclr=(255,0,0)) minval = tmrootnode.minclr(CLR_PROP) maxval = tmrootnode.maxclr(CLR_PROP) clrmap.setlimits(minval,maxval, neutralval=3) return(clrmap)