Mailing List
Home
Forum Home
Softimage
Carrara
trueSpace
Dir3d-l
Maya - a powerful 3D animation and visual effects software
Macromedia Flash Development
Subjects
Cameras
scaleDown command
black out solved
Aircraft Tutorial
Mathematical XYZ ?
Its done This vs That
Its done first week
recommendations for screen video captures?
3DExplorer "Oddity "
New Director
ProTeam renewals
Fuel 's new websites (X post)
Blue peter create a make toy
targeting groups question
XPost: Shockwave 3D game ( sort of )
RES: RES: RES: Fish Modeling
Emitting particles from object intersection
Fuel 's new websites (X post)
Texturing
Big Break Contest Videos
New Plugins
Models and Texture on my updated site
Error Installing Patch tS6 6
Plasma?
Looking for Inspiration
Weird EMail Q
It 's done first week ?
Cherry not cranberry
New game
Camera Animation Problem
Particle plugins?
 
Parents of parents of MPlugs

Parents of parents of MPlugs

2003-11-28       - By David Gordon

 Back
What is the best way of determining if the compute function of a
dependency node is being asked to compute a plug that looks like this:

plug = nodeName.arrayPlug[0].childAttribute

I can detect arrayPlug by simply comparing plug with arrayPlugAttr (my
static attribute MObject).
I can detect arrayPlug[0] by comparing plug.parent() with arrayPlugAttr
(after a call to MPlug::isElement())
But if I detect that the plug is a child plug, and that its parent is an
element, I cannot get the parent of the parent. The only solution I can
think of at the moment is doing a nasty string comparison on the name.
Surely there is a neater way?

Thanks,

David



-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---
List-help: <mailto:listar@(protected)?Subject=help>
List-archive: <http://www.highend3d.com/maya/devarchive/>