(Marcus: I thought axis-aligned bounding box specifically meant world-space
axis aligned. AABBs are used for culling so all AABBs need to be in the
same space.)
The xform command has switches that should do what you want:
*-boundingBox*(*-bb*)
[image: query]
Returns the bounding box of an
Hi everyone,
Thanks for your reply !
I have not had time to look since my last post. I try to look this week
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from
Not sure what you're hitting. That last line gives me...
om.MFnMatrixData(plug.asMObject()).matrix()
# Result: maya.api.OpenMaya.MMatrix(((1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1,
0), (0, 0, 0, 1))) #
On Tue, Dec 4, 2018 at 1:33 AM Marcus Ottosson
wrote:
> Hi all,
> I’ve been writing custom nodes
Wuw! What version of Maya is that, and what OS? I'm on Windows, Maya 2018.
Hadn't considered it might be a version or OS thing, will have a look at
that.
On Tue, 4 Dec 2018 at 14:14, Tim Fowler wrote:
> Not sure what you're hitting. That last line gives me...
>
>
Hmm...looks like I tried that on an unreleased version of Maya (and a Debug
version too). Just tried again in Maya 2018 and got the same error as
you. I'll take a quick look and see if I can figure out what fixed it, but
I should warn you that API fixes can sometimes be tricky to get into
I tried using xform before but it still gives me the same problem where
rotating the object gives me different values. Perhaps there is another way
of getting the size of an object? I want something like the tool you get
when you press ctrl+t which shows the size of any selected object.
On
Can you use fn.dagPath().inclusiveMatrix() ?
On Wednesday, 5 December 2018 02:02:25 UTC+11, Marcus Ottosson wrote:
>
> Mm, I'm looking to get a matrix out of Maya 2015 and above, so a patch
> would unfortunately not help me in this case. Do you know of another way of
> getting hold of that
Using OpenMaya you can get the object-space bounding box of a MFnDagNode.
PyMel exposes that function, which might be the easiest way to get it.
something like this (untested!)
import pymel.core as pm
obj = cmds.ls(sl=True)[0]
pymelObj = pm.PyNode(obj) # Alternatively you could just do pymelObj
Thanks but its still giving me the same result. I'm looking into using the
api right now
>
>
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an
Ah, you need to select the shape node. If you call boundingBox on the
transform, you get world space (or something, not local space anyhow)
On Wednesday, 5 December 2018 09:33:58 UTC+11, James Kim wrote:
>
> Thanks but its still giving me the same result. I'm looking into using the
> api right
10 matches
Mail list logo