<s> """<STR_LIT>""" <EOL> from win32com . client import constants <EOL> from win32com . client . dynamic import Dispatch <EOL> si = Dispatch ( "<STR_LIT>" ) . Application <EOL> sel = si . Selection <EOL> log = si . LogMessage <EOL> XSIMath = Dispatch ( "<STR_LIT>" ) <EOL> XSIUtils = Dispatch ( "<STR_LIT>" ) <EOL> XSIUIToolkit = Dispatch ( "<STR_LIT>" ) <EOL> XSIFactory = Dispatch ( "<STR_LIT>" ) <EOL> def getCollection ( ) : <EOL> """<STR_LIT>""" <EOL> newCollection = Dispatch ( "<STR_LIT>" ) <EOL> newCollection . Unique = True <EOL> return newCollection <EOL> def lockObjXfo ( dccSceneItem ) : <EOL> """<STR_LIT>""" <EOL> localXfoParams = [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] <EOL> for eachParam in localXfoParams : <EOL> param = dccSceneItem . Parameters ( eachParam ) <EOL> if param . IsLocked ( ) : <EOL> continue <EOL> param . SetLock ( constants . siLockLevelManipulation ) <EOL> si . SetKeyableAttributes ( dccSceneItem , "<STR_LIT>" , constants . siKeyableAttributeClear ) <EOL> return True </s>
