def setupReaderAttribute(reader, identifier, isConstant, jobInfo): cmds.ExocortexAlembic_profileBegin(f="Python.ExocortexAlembic._import.setupReaderAttribute") try: if reader != "": if not isConstant: fnt.alembicConnectAttr(jobInfo.timeCtrl+".outTime", reader+".inTime") cmds.connectAttr(jobInfo.filenode+".outFileName", reader+".fileName") cmds.setAttr(reader+".identifier", identifier, type="string") except Exception as ex: apix.MPxCommand.setResult("?setupReaderAttribute --> exception: \"" + str(ex.args) + "\" of type " + str(type(ex))) cmds.ExocortexAlembic_profileEnd(f="Python.ExocortexAlembic._import.setupReaderAttribute")
def setupReaderAttribute(reader, identifier, isConstant, jobInfo): cmds.ExocortexAlembic_profileBegin(f="Python.ExocortexAlembic._import.setupReaderAttribute") try: if reader != "": if not isConstant: fnt.alembicConnectAttr(jobInfo.timeCtrl+".outTime", reader+".inTime") cmds.connectAttr(jobInfo.filenode+".outFileName", reader+".fileName") cmds.setAttr(reader+".identifier", identifier, type="string") except: raise finally: cmds.ExocortexAlembic_profileEnd(f="Python.ExocortexAlembic._import.setupReaderAttribute")