nvm, I managed to find the solution for both question :)
I had to build each axis and then combine then
Le vendredi 7 juillet 2017 08:08:32 UTC-4, casf01 a écrit :
>
> Hello, first post here :)
>
> I'm new to maya ( coming from max) and I'm currently learning how to make
> custom node with python in maya so I decided to build a normalize vector
> node. I managed to get it working and it wasn't overly complex to do
> but...I have some questions regarding how I could improve it.
>
> 1 - I built it using maya old api, I wasn't able to port it to the new
> api, is there any info about how to migrate stuff ?
>
> 2 - both my input are double3 in the initialize even thought there
> declared as MVector in the node class
> NormalizeNode.valueIn = nAttr.create("valueIn","In", om.MFnNumericData.
> k3Double,0.0)
>
> So when I expand my input I get Value In 0, Value In 1 and Value In 2.
> How can I change this it be X,Y,Z ? I tried used the kVectorArray but
> that didn't worked.
>
>
> Thanks
> Fred
>
--
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/f2144eee-a123-4190-9e67-9013aaa4bc68%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.