#NEWLINE# def setVisProperties( obj , colorModeEnabled ) : #NEWLINE# #INDENT# if colorModeEnabled : #NEWLINE# #INDENT# alpha = 1.0 #NEWLINE# pointSize = 4.0 #NEWLINE# colorBy = 'rgb' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# alpha = 0.5 #NEWLINE# pointSize = 1.0 #NEWLINE# colorBy = None #NEWLINE# #UNINDENT# obj . setProperty ( 'Alpha' , alpha ) #NEWLINE# obj . setProperty ( 'Point Size' , pointSize )