virtual classes: _postCreateVirtual(**kwargs)

18 views
Skip to first unread message

IanJones

unread,
Nov 11, 2010, 11:14:52 AM11/11/10
to pymel-dev
So one of the things we've identified we would like to be able to do
is pass kwargs to postCreateVirtual.

We're all comfortable with stuff like
pm.Joint(name='test',angleX=10,limitY=True) and right now that is
difficult to do with virtuals.

What we are proposing (co-authored by Seth Gibson) is that
_preCreateVirtual be extended to return two dictionaries. One for
passing to the underlying create function the other to the
postCreateVirtual.

We liked this approach for two reasons:
- One it puts the filtering of the kwargs (which are for create/post
create) on the developer right beside the _postCreate.
- Secondly because it should be easy to make backwards compatible by
testing the return length on _preCreate and using the original
behavior.

Thoughts?

Paul Molodowitch

unread,
Nov 11, 2010, 1:14:00 PM11/11/10
to pyme...@googlegroups.com
Congratulations... I think this is the first post on pymel-dev. =)

Anyway - yeah, I think this sounds like a good idea in concept. And should be pretty easy to implement...

- Paul


--
You received this message because you are subscribed to the Google Groups "pymel-dev" group.
To post to this group, send email to pyme...@googlegroups.com.
To unsubscribe from this group, send email to pymel-dev+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pymel-dev?hl=en.


Reply all
Reply to author
Forward
0 new messages