I’m guessing this is straight forward and I’m just not sure what I should be looking for.
If A is a child of B and B has a scale of 3, how can I get the worldspace scale of A? cmds.xform(A, q=True, ws=True, a=True, s=True) gives a warning of "Cannot query scale in worldspace. Defaulting to local space. ".
scaleConstraint works but I’m curious how to query it.
It’s actually not too straightforward, since there’s no guarantee that the chain of parent matrices arent messing with you with rotations and shears.
You could try getting the worldMatrix attribute of the child with xform(q=True, m=True, ws=True) and decomposing it yourself from there. The scale part would be the [0,0], [1,1], [2,2] components of the matrix ( items 0, 5, 10) but only if the parent matrix chain was not sheared.
The ultra cheapo solution - unparent the object, check the scale (and shear!) values – then undo the unparenting.