Custom Deformer Missing inputGeom Attribute

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Display Modes
  01 January 2013
Unhappy Custom Deformer Missing inputGeom Attribute

Hey Guys,

I have been writing custom deformer node, and quite frankly everything is working fine except the simple fact that my node is missing inputGeom attribute

Correct me if I am wrong but shouldn't that attribute be inherited by default if I derive from MPxDeformerNode ??

I even went as far as creating that attribute from scratch inside initialize() and the result was that Maya failed to reigster the node

So it looks as if its there but I cant see it in Connection Editor

If anyone could shed some light on that problem I would really appreciate

Cheers !!
Latest Reel
  01 January 2013
The most obvious reason must be the way you try to access this attribute:

a deformer inherits attributes from weightGeometryFilter --> geometryFilter.
In the node documentation you will find that inputgeometry is a child of a compound array attribute called input.


that why you can push points of multiple meshes with one deformer

if you dont wish to use the default MItGeometry provided by the deformer you must access this attribute like a xml node( with MPlug if you want )
  01 January 2013
Hey Cedric

I see in that case how does one connect geometry shape to the deformer node properly ??

Is groupId some set membership node ??

I was under impression that simple outMesh -> inMesh would suffice, but I guess I am wrong .

Thanks for reply, appreciated .

Cheers !

Latest Reel
  01 January 2013
Normally you setup a deformer with this command:
deformer -type "myAwsomeCustomDeformer" --> the groupId and groupPart are set up automatically with this command and the groupPart is what will tell maya what vertex to operate on( when you play with the edit membership tool to remove vertex from a deformer )

if you need other mesh input you can then plug it with the regular connectAttr command.
  01 January 2013
You are a LEGEND my friend

Silly me thought that I have to use createNode() and then connect the geo attributes manually , now I see that Maya actually has a dedicated deformer command to do it for me , amazing !!!

Thanks again dude everything is working smoothly now


Latest Reel
  01 January 2013
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 03:52 PM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.