MPxTransform 2003-11-25 - By Zhenping Guo
Back I agree that this is a maya bug. Because I have this problem (rotatePivot not copied and I need it to be copied), copyInternal is a good workaround.
zhenping
-- --Original Message-- -- From: maya-dev-bounce@(protected) [mailto:maya-dev-bounce@(protected)]On Behalf Of Bryan Ewert Sent: Monday, November 24, 2003 8:00 PM To: maya-dev@(protected) Subject: Re: MPxTransform
? from Mon, 24 Nov 2003 07:51:49 -0800 (PST)
> yes, I have the same problem. I noticed it was not copying other attributes > like the rotate order.
> I would say that you could fix that if you override the method :
> void MPxNode:: copyInternalData ( MPxNode *node )
> which is called on duplication.
I don't understand why you should have to do this, or how it would help. I would expect the base class to copy its own internal data, particularly if you did _not_ override this method with a custom implementation. Furthermore, attributes such as the rotate pivot and rotate order are the jurisdiction of the base class, not the derived class(es).
Secondly, how would one copy internal data from the base class? Internal data is, well, internal, and typically implemented as private data members. Objects derived from MPxNode have no access to - nor knowledge of - the implementation of the base class's internal data. So how are they supposed to copy it?
-- Bryan Ewert ? maya@(protected) ? http://www.ewertb.com ?
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --- List-help: <mailto:listar@(protected)?Subject=help> List-archive: <http://www.highend3d.com/maya/devarchive/>
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --- List-help: <mailto:listar@(protected)?Subject=help> List-archive: <http://www.highend3d.com/maya/devarchive/>
|
|