with of course :
numAttr = OpenMaya.MFnNumericAttribute()
Le mardi 25 février 2014 17:51:38 UTC+1, laurent Pic a écrit :
>
> As I suspected, I was completely wrong since the beginning !
> It seems that the right way to go is the following:
>
> MyNode.inputGizmo = numAttr.create( "inputGizmo", "inGizmo",
> OpenMaya.MFnNumericData.k3Double )
> numAttr.setArray(1)
>
>
> pretty simple in fact :)
> o/
>
>
>
> Le lundi 24 février 2014 12:47:44 UTC+1, laurent Pic a écrit :
>>
>> Hi,
>> First of all, this is my first deformer, so please excuse the dumb
>> question if dumb it is.
>>
>> I'm completely stuck with a slot initialisation.
>> I would like a slot that accepts an undefined ( dynamic ) number of
>> vector as input ( I would think of a MFnVectorArrayData() ? ) so I'm going
>> like:
>>
>> VctArrAttr = OpenMaya.MFnVectorArrayData()
>> MyNode.Test = VctArrAttr.create("Test", "Test",
>> OpenMaya.MFnData.kVectorArray )
>> MyNode.addAttribute( MyNode.TestGizmos )
>> MyNode.attributeAffects( MyNode.TestGizmos,
>> OpenMayaMPx.cvar.MPxDeformerNode_outputGeom )
>>
>> I kinda understand that there is a lot missing there for it to work
>> properly, but I'm stuck with the little information I get from the standard
>> API reference.
>>
>> Thanks for your help !
>> Also if there is richer documentation available somewhere, I'd be glad to
>> know about it :)
>>
>> o/
>>
>>
>>
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/d964dd0a-90a8-4dfd-93a9-d094613171d7%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.