CGTalk > Software > Autodesk Maya > Maya Programming
Login register
Thread Closed share thread « Previous Thread | Next Thread »  
Thread Tools Search this Thread Display Modes
Old 07-04-2013, 12:53 PM   #1
Posts: n/a
Maya API - Explanation needed 'envelope'

Hi guys,

can anyone explain me the following code?
I've found nothing accurate on the internet...

envelope = OpenMayaMPx.cvar.MPxDeformerNode_envelope envelopeHandle = dataBlock.inputValue( envelope ) envelopeValue = envelopeHandle.asFloat() offsetHandle = dataBlock.inputValue( self.offset ) offsetValue = offsetHandle.asDouble bulgeExtendHandle = dataBlock.inputValue( self.bulgeextend ) bulgeExtendValue = bulgeExtendHandle.asDouble()


Last edited by Python1234 : 07-04-2013 at 01:06 PM.
Old 07-04-2013, 01:59 PM   #2
Join Date: Aug 2005
Posts: 753
The Maya Python API documentation describes it. Actually it refers to the same exact static var:

Accessing static MObjects of an MPx class

The proxy classes provide some standard information to a developer about the node that is being used. This includes attribute objects that are used to define the node. To access a static class MObject in the Maya Python API, similar code can be used:

envelope = OpenMayaMPx.cvar.MPxDeformerNode_envelope

After making this call, the envelope will be an MObject for MPxDeformerNode::envelope.

Old 07-04-2013, 01:59 PM   #3
CGTalk Moderation
CGTalk Forum Leader
Join Date: Sep 2003
Posts: 1,066,478
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 02:15 AM.

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