Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

PyGML

95 views
Skip to first unread message

keegan3d

unread,
Mar 9, 2010, 3:00:59 AM3/9/10
to graffiti-markup-language
Hey guys,

I've started a python framework for reading and writing GML data.
Everything outlined in the GML spec is supported.

http://bitbucket.org/keegan3d/pygml

You can check out an example of the API in use here:
http://bitbucket.org/keegan3d/pygml/src/tip/libdev.py

My goal for this project is to make it easy to import GML data into 3d
apps like Maya, Houdini or Blender which are all scriptable through
python. This API should be useful for other things too.

Hopefully I can start on the Maya importer soon.

-Dave

Evan Roth

unread,
Mar 9, 2010, 4:52:32 AM3/9/10
to graffiti-mar...@googlegroups.com
Dave,
This is great! We will get this updated on http://000000book.com/apps
shortly.

I also have been dreaming of a GML -> Maya/Blender, I'll keep my
fingers crossed for progress on this. There is another team that has
made some progress on a 3DS Max importer. I don't have any contact
details on them yet, but they have a youtube account:

http://www.youtube.com/watch?v=8kRicxxCEMI

A work around I haven't tried yet is using Mike Frumin's OGLE
application to "screen grab" the openGL data directly from application:

http://ogle.eyebeamresearch.org/

Keep us updated, this is great stuff.

Thanks again,
Evan

> --
> -~-~-~-~-~-~>
> GML Mailing List: http://groups.google.com/group/graffiti-markup-language
> Unsubscribe: graffiti-markup-la...@googlegroups.com

Evan Roth
ev...@evan-roth.com

http://evan-roth.com
http://graffitiresearchlab.com
http://fffff.at

Jamie Wilkinson

unread,
Mar 10, 2010, 2:13:01 AM3/10/10
to graffiti-mar...@googlegroups.com
Nice!! This'll be perfect for when we get some 3D holographic projectors imported from the future ;)

Dave -- do you have any particular projects you're using this with yet? So much potential!

-jamie
http://jamiedubs.com

keegan3d

unread,
Mar 10, 2010, 3:10:08 PM3/10/10
to graffiti-markup-language
I saw the 3ds max video on Evan's blog and got inspired to do
something for Maya. I don't have any specific projects in mind. I
wrote it for the Maya importer but made it generic so it's easy to
work with GML in python :)

-Dave

On Mar 9, 11:13 pm, Jamie Wilkinson <ja...@tramchase.com> wrote:
> Nice!! This'll be perfect for when we get some 3D holographic projectors imported from the future ;)
>
> Dave -- do you have any particular projects you're using this with yet? So much potential!
>

> -jamiehttp://jamiedubs.com

> > e...@evan-roth.com

David Keegan

unread,
Apr 9, 2010, 3:58:12 AM4/9/10
to graffiti-mar...@googlegroups.com
I finally got some time to get back to this project.

Here are the first two images of reading gml data into maya: http://emberapp.com/keegan3d/collections/pygml

Dave

On Mar 9, 2010, at 1:52 AM, Evan Roth wrote:

Evan Roth

unread,
Apr 9, 2010, 6:16:42 AM4/9/10
to graffiti-mar...@googlegroups.com
Dave, this is sick! Might it be possible to put the source code /
tutorial online, I would love to link to this?

I got the OGLE to Blender system working pretty well btw:
http://www.blog.ni9e.com/archives/2010/04/graffiti_analys_15.html

Please keep us updated, this Maya implementation is great!

Thanks for the email,
Evan

David Keegan

unread,
Apr 9, 2010, 2:05:04 PM4/9/10
to graffiti-mar...@googlegroups.com
I'll definitely put the source online and make a tutorial, but the code is not far enough along right now. It's not much more then hacked together python to make sure the data is being read correctly. Hopefully I'll have something after the weekend.

I saw your post about OGLE, that's such an awesome tool!

On Fri, Apr 9, 2010 at 3:16 AM, Evan Roth <ev...@evan-roth.com> wrote:
Dave, this is sick! Might it be possible to put the source code / tutorial online, I would love to link to this?

I got the OGLE to Blender system working pretty well btw:
http://www.blog.ni9e.com/archives/2010/04/graffiti_analys_15.html

Please keep us updated, this Maya implementation is great!

Thanks for the email,
Evan



On Apr 9, 2010, at 9:58 AM, David Keegan wrote:

I finally got some time to get back to this project.

Here are the first two images of reading gml data into maya: http://emberapp.com/keegan3d/collections/pygml

Dave

On Mar 9, 2010, at 1:52 AM, Evan Roth wrote:

Dave,
This is great! We will get this updated on http://000000book.com/apps shortly.
To unsubscribe, reply using "remove me" as the subject.



--
David Keegan
http://inscopeapps.com
http://bitbucket.org/keegan3d
http://keegan3d.tumblr.com
http://twitter.com/keegan3d

David Keegan

unread,
Apr 21, 2010, 3:15:01 AM4/21/10
to graffiti-mar...@googlegroups.com
Here's an update on the project:

The Maya side is coming along, I still don't have a usable plugin but it's getting very close. I decided to write all the polygon math code in the python library instead of restricting it to the maya API. This will make it easier for other things to create 3d data from GML, for example I just checked in code to convert GML to OBJ!


The stroke object has a getPolyData method that takes a radius, number of sides and some other arguments. This will dump out two arrays: the connection indices and the vertex positions.

The code to generate maya geometry looks somewhat similar to the obj code.


The polygon algorithm needs some work, right now it's doing a basic look ahead to aim each ring at the next point, this causes buckling at sharp angles.
she_155.obj
Screen shot 2010-04-21 at 12.06.45 AM.png
Reply all
Reply to author
Forward
0 new messages