Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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
0
Question by ClydeicusRex · Jul 14, 2013 at 03:00 AM · animationeditor-scriptingmodelimporter

How can I edit model import settings from a script?

Specifically: I'd like to write to the animation names and frame ranges on the import settings, and make those changes stick.

I get a lot of model assets in the form of an animated model file and a text file listing the animation names and frame ranges. Each time I import one of these models I have to manually enter the frame ranges in the model's import settings inspector. Now I'm trying to automate this process.

I already know how I'll parse the file and how to make a custom EditorWindow. I've also already managed to read the import settings from the script.

How can I write to these settings and save the changes? Thanks.

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
-3
Best Answer

Answer by Benproductions1 · Jul 14, 2013 at 03:00 AM

http://lmgtfy.com?q=unity+edit+import+setting+from+script

Comment
Add comment · Show 5 · 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 ClydeicusRex · Jul 14, 2013 at 03:16 AM 0
Share

Google failed me. That's why I'm here. Text keywords can only take one so far. I tried researching the answer myself by trial and error, but only managed to read the settings.

avatar image Benproductions1 · Jul 14, 2013 at 03:20 AM 0
Share

It's all about using the right words :)
...
And there they are

avatar image ClydeicusRex · Jul 14, 2013 at 04:54 PM 0
Share

Got it eventually. Relevant search result had helpful content but was poorly titled, resulting in my skipping it the first time. Thanks.

avatar image Benproductions1 · Jul 15, 2013 at 12:08 AM 0
Share

If thats the case, would you $$anonymous$$d accepting the answer? :)

avatar image ClydeicusRex · Jul 15, 2013 at 02:35 AM 0
Share

Just did! For the benefit of others I'll link the page from that link chain that ended up helping: http://wiki.unity3d.com/index.php/FbxAnimListPostprocessor

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

17 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

I can't setting at once ModelImporter.sourceAvatar in script. 1 Answer

Can I make animations snap to a frame? 1 Answer

Find number of Meshes from FBX in Editor Script 0 Answers

How to edit Animation Clip Settings using an editor script 2 Answers

How to play mecanim animations in Editor mode? 2 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