Jump to content

Get entityName error


Brian

Recommended Posts

Thanks, Lorenzo.

I'm so sorry, I misdescribed the problem, what I can't get the return value correctly is the entityType. When I am at the entity of Folder, Shot, or Milestone, the entityType return value is always a task. I try to use

_context = self.session.get('Context',selection['entityId'])

but the return is None.

I can query the folders with

session.query("Folder")

but I can't catch them from

event['data']['selection']

image.png.159c3c1cea0c5ac3d8af8d0c764442b2.png

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...