PDA

View Full Version : MPxConstraint from da API... :)


strarup
04-03-2008, 07:21 PM
Hi,

has anyone played with the MPxConstraint and MPxConstraintCommand from the Maya api?
and if so e.g. know how to get the offset thingie implemented/syntax?

I have recompiled Chad Robert Morgan's vertexConstraint plugin
(http://members.aol.com/docmorgan/plugins.htm)for Maya 2008 windows... you can get it here (http://www.strarup.net/awug/vertexConstraintNodeMaya2008_win32bit.zip)...

why I'm asking this question is because I thought it could be quite cool now that the api
has got this new functionality to implement it into morgan's vertexConstraint plugin...
think it could be quite cool... with the vertexContraint node to have the offset ability included... :)

however I have only been able to find the offset thingie in the MPxConstraintCommand and not in the MPxConstraint...
supportsOffset and offsetAttribute are in the MPxConstraintCommand... and I just wonder if you e.g. only make it in the "making command" of the plugin... if this then will get added to the created node by the plugin...
there is a quite cool example in the devkit section on how to make a plugin with the MPxConstraint thingie...
however it just doesn't have the offset thingie implemented... :)

kind regards

Strarup

GiantG
04-04-2008, 08:34 AM
Hi.

If you have some more spare time after the offset thing...
It would be great to implement that the contraint could take the orientation.

Some time ago a build a freaky workaround setup for this stuff with particle emitter and ponitOnMesh stuff to get the orientation(from the vertex normal) as well.
An AllInWonder Solution would be nice....:applause:

Cheerz...

strarup
04-08-2008, 07:19 PM
Hi Guido,


cool idea... however first have to figure out the offset thingie... but after that I will take a look at the orientation thingie... :)

however using more time at the moment boxing with linux and figurering how I can get the development environment and other stuff to work so I can compile plugins for linux aswell...
so the offset thingie might have to wait a bit aswell... :)

kind regards

Strarup

CGTalk Moderation
04-08-2008, 07:19 PM
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.