Home Technical Talk

Is there a way to export curve data from Maya to a text file?

polycounter lvl 8
Offline / Send Message
Glacierfox polycounter lvl 8
Hi there. Long story short, I need a way of importing curves into Unreal 4. Drawing the curves manually in the viewport just isn't precise enough for what I need. I need multiple copies of these curves to spread around a different level.

I found a MaxScript online which exports the spline data out of MAX and into a text file and I am able to create a curve out of this using a data table in Unreal 4. The problem is, all of my curves are already drawn out in Maya and importing those same curves into MAX converts them into NURBS which can't be exported in the same manner. I literally have around 50 of these perfectly drawn curves sitting in Maya.

Does anyone have knowledge of a way I can do this in Maya? I'm not very good with Python but I can try and convert the Max script over but I am not sure which parts of the Maya Bezier curves correspond similar components.

Here's a copy of the MaxScript if anyone would like to take a look or take advantage of it. 

https://pastebin.com/FFDDLhi3

Thanks for any help.

Replies

Sign In or Register to comment.