Issue 139 in pymel: setKeyable on compound attrs should propagate to child attrs

6 views
Skip to first unread message

codesite...@google.com

unread,
Dec 31, 2009, 8:46:48 PM12/31/09
to py...@googlegroups.com
Status: New
Owner: ----

New issue 139 by macaronikazoo: setKeyable on compound attrs should
propagate to child attrs
http://code.google.com/p/pymel/issues/detail?id=139

well, it'd be nice if it did anyway. so something like:


PyNode( 'persp' ).translate.setKeyable( False )

would set keyable flag on tx, ty and tz to False.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

codesite...@google.com

unread,
Dec 31, 2009, 8:58:50 PM12/31/09
to py...@googlegroups.com

Comment #1 on issue 139 by macaronikazoo: setKeyable on compound attrs

where does the setKeyable code even exist?

codesite...@google.com

unread,
Dec 31, 2009, 11:14:30 PM12/31/09
to py...@googlegroups.com

Comment #2 on issue 139 by elrond79: setKeyable on compound attrs should

setKeyable is (I believe) auto-wrapped from MFnAttribute.setKeyable... the
auto-wrapping magic happens MetaMayaTypeWrapper, which is the metaclass for
the pymel
Attribute type.

If you're looking to modify the behavior of Attribute.setKeyable, you can
just add a
new method directly to the Attribute class, and have that wrap the
appropriate mel
cmd (setAttr in this case, I think). If there's a hand-defined method, it
will
override any similarly named auto-wrapped command.

codesite...@google.com

unread,
Dec 31, 2009, 11:21:30 PM12/31/09
to py...@googlegroups.com

Comment #3 on issue 139 by elrond79: setKeyable on compound attrs should

...incidentally, there's a number of cases for which it would be nice to
have
propogation-type behavior for attributes... and not just for compound
elements, but
array attributes as well. Unfortunately, this behavior isn't built into
the commands
we wrap, and it's something we haven't gotten around yet to adding
ourselves.

codesite...@google.com

unread,
Jan 1, 2010, 12:32:36 AM1/1/10
to py...@googlegroups.com

Comment #4 on issue 139 by macaronikazoo: setKeyable on compound attrs

sweet! thanks, I'll see if I can figure something out.

incidentally, who do you get an account here?

I guess I should probably learn how all the unit tests work and whatnot
first - any
data on that? I'm a bit of a unit test n00b... and should absolutely not
be.

codesite...@google.com

unread,
Jan 4, 2010, 5:56:45 PM1/4/10
to py...@googlegroups.com
Updates:
Labels: Type-Enhancement Milestone-1.0.x

Comment #5 on issue 139 by chadrik: setKeyable on compound attrs should

since this is not currently supported by setAttr -keyable, this is being
marked as an
"enhancement", i.e. feature request. it most likely won't make it into
1.0.0, but can be
included in a future release.

Reply all
Reply to author
Forward
0 new messages