Draw custom shape

106 views
Skip to first unread message

illunara

unread,
Nov 7, 2014, 1:49:05 PM11/7/14
to python_in...@googlegroups.com

Hi everbody
Just wander around internet and found this. Look so cool, i wonder how we can draw those controller? Using OpenGL or OpenMaya already support it?
Thanks

Ricardo Viana

unread,
Nov 7, 2014, 2:17:48 PM11/7/14
to python_in...@googlegroups.com
It looks like nurbs objects or polygons with a transparency on the shader
--
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 python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/0feb2ab8-bdf5-4286-86fe-e912a5d98444%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Ricardo Viana

Janos Hunyadi

unread,
Nov 7, 2014, 6:32:07 PM11/7/14
to python_in...@googlegroups.com
Its a custom locator probably. You can write one in python or compile it in C++ with the Maya Api.

Check the FootprintLocator example in the Maya Devkit examples if you want to know how to make one.
J

illunara

unread,
Nov 7, 2014, 11:45:08 PM11/7/14
to python_in...@googlegroups.com
Wee, guys. Just take a quick look and i think it what i had been looking for.
And I read about how to write a custom locator using openGL before too, is there and different between OpenMaya and OpenGL to do this?

Marcus Ottosson

unread,
Nov 8, 2014, 2:48:35 AM11/8/14
to python_in...@googlegroups.com
You can definitely write custom locators for this, but there really is no need. Those may have been plain nurbs surfaces, like Ricardo said. For the pelvis control, with outlines and transparency, its probably a nurbs surface with an invisible polycube on top, showing only outlines.

Custom shapes however may be necessary if you want these shapes to stay on top of the mesh, regardless of their z-order, but that doesn't seem to be the case here either.

I could upload an example if you'd like.


On Saturday, 8 November 2014, illunara <cb.il...@gmail.com> wrote:
Wee, guys. Just take a quick look and i think it what i had been looking for.
And I read about how to write a custom locator using openGL before too, is there and different between OpenMaya and OpenGL to do this?

--
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 python_inside_m...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--
Marcus Ottosson
konstr...@gmail.com


Tuan Nguyen

unread,
Nov 8, 2014, 10:05:30 AM11/8/14
to python_in...@googlegroups.com
@Marcus : Yes, please. I just getting start with MayaAPI so i need example as much as possible :D
Btw, using nurbs for controller is kind of, annoying to me :D If possible, i would try something else :D

Marcus Ottosson

unread,
Nov 8, 2014, 10:59:58 AM11/8/14
to python_in...@googlegroups.com
I meant an example using Nurbs. I understand you are just looking to learn programming with the API, and by all means go ahead, but I'd stick with native Maya utilities first and foremost if I were you if you're working towards production. It's what they're there for.

On Saturday, 8 November 2014, Tuan Nguyen <cb.il...@gmail.com> wrote:
@Marcus : Yes, please. I just getting start with MayaAPI so i need example as much as possible :D
Btw, using nurbs for controller is kind of, annoying to me :D If possible, i would try something else :D

--
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 python_inside_m...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--
Marcus Ottosson
konstr...@gmail.com


Tuan Nguyen

unread,
Nov 8, 2014, 12:40:54 PM11/8/14
to python_in...@googlegroups.com
Ah, that's would be great too :D I think there are many feature of Maya that i haven't know yet, this will help me alots ;)

Marcus Ottosson

unread,
Nov 8, 2014, 12:53:00 PM11/8/14
to python_in...@googlegroups.com
Sure, here you go. Attached.

Inline images 1

On 8 November 2014 17:40, Tuan Nguyen <cb.il...@gmail.com> wrote:
Ah, that's would be great too :D I think there are many feature of Maya that i haven't know yet, this will help me alots ;)

--
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 python_inside_m...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Marcus Ottosson
konstr...@gmail.com

shapes.ma

Tuan Nguyen

unread,
Nov 8, 2014, 1:19:07 PM11/8/14
to python_in...@googlegroups.com
Simple the best, thank Marcus :D

--
You received this message because you are subscribed to a topic in the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/python_inside_maya/UBU5mOpzRCQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmODdaL3BmZ%2BJQFrNPxEo2m11e92rMxzywH76onNj%3Dz_pEQ%40mail.gmail.com.

Marcus Ottosson

unread,
Nov 8, 2014, 1:22:44 PM11/8/14
to python_in...@googlegroups.com
You're very welcome, Tuan. :)


On Saturday, 8 November 2014, Tuan Nguyen <cb.il...@gmail.com> wrote:
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAMCvD%2BEGbmXHkpb%2Bhicu1QALoqTk1xMhnjy5P4H-Cbbe%3DSZ8hg%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.


--
Marcus Ottosson
konstr...@gmail.com


Reply all
Reply to author
Forward
0 new messages