I have a problem getting the coordinates for the manipulator inside the UV Editor once the NEX modelling toolkit is active.
pm.texMoveContext( “texMoveContext”, query=True, position=True )
pm.texRotateContext( “texRotateContext”, query=True, position=True )
pm.texScaleContext( “texScaleContext”, query=True, position=True )
That’s the code I run in order to query the texture editor context position (manipulator position).
Problem is that once the user activates NEX, these are replaced for some different context type and I haven’t been able to find out how to query that.
With print(pm.currentCtx()) this string is printed:
“ModelingToolkitSuperCtx”
And print( pm.contextInfo( pm.currentCtx(), c=True ) ) says that the class is:
texMove
But really… is it?
pm.texMoveContext( “ModelingToolkitSuperCtx”, query=True, position=True )
RuntimeError: texMoveContext: Object ‘ModelingToolkitSuperCtx’ not found
So I went a step back and tried with superCtx
print( pm.superCtx( “ModelingToolkitSuperCtx”, query=True) )
Result: texMoveContext
I don´t understand this!
“ModelingToolkitSuperCtx” is a superCtx which in turn is a texMoveContext??