[Q] Remove DAG object path from subject name in LiveLink with Python

GitHub Source Code

Hello
I am currently editing the python scripts of the maya livelink plugin to be easier for our artists. I know this probably wont need C++ programming because I can see change if I change the text box manually, just not with code.

I need to understand how to call this C++ function and how it takes arguments outside of a changeCommand=CallbackWithArgs() function.

I attempt : cmds.LiveLinkChangeSubjectName(SubjectPath, SubjectName) but does not work.

I scrub Namespaces from Maya’s naming convention so the SubjectName is clean.

SubjectName is altered ahead of time
    SubjectName = SubjectName.rsplit(':',1)[0]
        if SubjectName.count(':'):
            SubjectName = SubjectName.rsplit(':',1)[1]

I am expecting to put this C++ command inbetween 58-63 of the Python code.

Thank you in Advance
-Aaron