How do i get the current user login from Shotgun ?

Hi All !

My flash launcher is now getting a very good context with all information i need. The last info i want to retrieve from Shotgun is the shotgun login of the user.

what is the method i need to return that info.



댓글 1개

  • 0
    Manne Öhrström

    Hey there Pierre!

    The method that toolkit currently uses for this is called sgtk.util.get_current_user() - you can read more about it in our reference documentation!

    Alternatively, you can also access this information on the context object itself - there is a user property which is populated with the current Shotgun user if this is known by the system. You can read more about the context.user property here.

    Hope this helps!

댓글을 남기려면 로그인하세요.