I'm trying to get selected nodes from tutorial.If I use the code below ,the getLocationContext() will return None.
import sd
context = sd.getContext()
sdApplication = context.getSDApplication()
pkgMgr = sdApplication.getPackageMgr()
sdLocationContext = sdApplication.getLocationContext()
print (sdLocationContext)
if I add sdApplication.setLocationContextUID(3) , it will work.
I can't find info about the contextUID. Which UID should I use ? What's the logic?
BTW, I saw some people using aContext beside sd.getContext.What's the aContext?