Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by Grant 2 · Jul 19, 2011 at 11:32 PM · fbxmaya pipeline

Hooking into Unity FBX Export from Maya

I saw that Unity uses a MEL script when exporting from Maya. I'd like to make maya write out some extra data for me to use when it reads in the Maya scene. What I want to know is, what is the best practice way to hook my own procedure calls into this script?

Thanks, Grant

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image BerggreenDK · Jul 20, 2011 at 12:26 AM 0
Share

I think you need to ask this in a $$anonymous$$aya forum as its not a Unity3D question (sorry). The script runs in $$anonymous$$aya, therefore its a $$anonymous$$aya-script problem.

avatar image Grant 2 · Jul 20, 2011 at 12:32 AM 0
Share

I think this is actually a Unity question because Unity calls $$anonymous$$aya to do the work and when it does, it passes the script. I am not looking for how the $$anonymous$$EL works, what I wanted to find out is has anyone modified that script for their own pipeline? If so, are there any gotchas or best practices for hooking into this script. Are there other ways to hook into this other then modifying the factory scripts? Are there things that can be included on the Unity side as "Pre" and "post" export script hooks?

1 Reply

· Add your reply
  • Sort: 
avatar image
2

Answer by Bunny83 · Jul 20, 2011 at 06:12 AM

Well, if you know how to script in MEL ( i don't ;) ) you can change the export script the way you like but you should create a backup in case you mess something up. Just go to your Unity installation folder: /Editor/Data/Tools/ there you will find the exportscripts that are used by Unity. In your case (Maya) there are 3 scripts (at least on my installation Unity 3.0): FBXMayaMain.mel
FBXMayaExport.mel
FBXMayaExport5.mel

There are also two more scripts, one for 3ds Max and one for blender. Just in case someone else wants to change the export script.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Grant 2 · Jul 20, 2011 at 07:01 PM 0
Share

Bunny83,

I think you are right. I'll try modifying the FBX$$anonymous$$aya$$anonymous$$ain.mel file first and see where I get.

I was curious if anyone else had tried this and had some wisdom to pass along. :)

Grant

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Export FBX files to unity that contain bones without weights 1 Answer

Why Mel Scripted Animation Won't Play in Unity 1 Answer

adding blendshapes to a rig breaks existing fbx-animations unneccesarily 0 Answers

Maya/Unity FBX Round-trip Not Working 0 Answers

Maya LT - Export group as single FBX 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges