3
9
Fork 17

New Addon: Import Autodesk .max #22

Closed
Sebastian Sille wants to merge 38 commits from (deleted):nrgsille-import_max into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.

Created new addon for importing meshes and materials from Autodesk .max files
Upload to contribution for testing purposes, the regular pull request can be found here: #105013

Created new addon for importing meshes and materials from Autodesk .max files Upload to contribution for testing purposes, the regular pull request can be found here: [#105013](https://projects.blender.org/blender/blender-addons/pulls/105013)
Sebastian Sille self-assigned this 2023-11-22 23:25:26 +01:00
Sebastian Sille added 1 commit 2023-11-22 23:25:28 +01:00
500e09268a Uploaded: io_import_max
Uploaded new addon for importing meshes and materials from Autodesk .max files
Sebastian Sille requested review from Campbell Barton 2023-11-22 23:28:47 +01:00
Sebastian Sille added 1 commit 2023-11-27 02:47:53 +01:00
b96e94368e Import_max: Added import options
Added import options for scale and transform
Fixed axis conversion
Sebastian Sille added 1 commit 2023-11-27 11:43:10 +01:00
2d0bb80d0d Import_max: Updated user interface design
Updated UI design to blender standard
Sebastian Sille added 1 commit 2023-11-27 13:31:35 +01:00
b9ce4686a8 Import_max: Fixed matrix variable
Changed variable for matrix chunk to avoid confusion with real matrix
Removed debug keyword
Sebastian Sille added 1 commit 2023-11-27 13:50:57 +01:00
d41ace599b Import_max: Fixed matrix variable
Changed variable for matrix chunk to avoid confusion with real matrix
Sebastian Sille added 1 commit 2023-11-27 15:32:13 +01:00
05793fb613 Import_max: Removed write mode
Removed write mode from data import
Sebastian Sille added 1 commit 2023-11-27 15:57:19 +01:00
8c92c2671b Import_max: Changed definition order
Changed definition order for better overview
Sebastian Sille added 1 commit 2023-11-27 20:23:53 +01:00
a9e60678b5 Import_max: Added additional import options
Added options to import materials and UV as mesh object
Sebastian Sille added 1 commit 2023-11-28 01:26:18 +01:00
Sebastian Sille added 1 commit 2023-11-28 02:08:22 +01:00
Sebastian Sille added 1 commit 2023-11-28 02:28:57 +01:00
Sebastian Sille added 1 commit 2023-11-29 01:08:51 +01:00
ba4008a5f4 Import_max: Fixed mesh import
Check if mesh is editable poly
Sebastian Sille added 1 commit 2023-11-29 01:15:34 +01:00
07e4bb71c2 Cleanup: Import_max
Removed unused code
Sebastian Sille added 1 commit 2023-11-29 01:46:58 +01:00
94b6787948 Cleanup: Import_max
Cleanup tabs and spaces
Sebastian Sille added 1 commit 2023-11-29 14:19:18 +01:00
d7120e8724 Import_max: Added principled BSDF
Added node_shader_utils principled BSDF wrapper
Removed parameters wich are incompatible for blender
Sebastian Sille added 1 commit 2023-11-29 14:28:53 +01:00
9e09f562f9 Import_max: Fixed specularity
Changed specularity default
Sebastian Sille added 1 commit 2023-11-29 22:29:34 +01:00
540f70018e Import_max: Avoid struct error
Ensure there are enough bytes to read
Sebastian Sille added 1 commit 2023-12-01 20:30:39 +01:00
Sebastian Sille added 1 commit 2023-12-01 22:33:56 +01:00
7e75ed90a9 Cleanup: Import_max
Changed blender version to last compatible version
Cleanup unused code
Sebastian Sille added 1 commit 2023-12-02 12:18:18 +01:00
Sebastian Sille added 1 commit 2023-12-02 13:10:50 +01:00
0de2356c12 Cleanup: Import_max
Cleanup tabs and spaces
Sebastian Sille added 1 commit 2023-12-03 23:05:59 +01:00
b0443729ac Import_max: Removed unused code
Added additional arch material parameter
Removed unused code
Sebastian Sille added 1 commit 2023-12-04 20:01:34 +01:00
45b3f48498 Import_max: Fixed crash with new .max files
Fixed crash with files from latest version
Removed unnessecary code
Removed unused imports
Sebastian Sille added 1 commit 2023-12-04 20:17:28 +01:00
Sebastian Sille added 1 commit 2023-12-04 22:18:01 +01:00
Sebastian Sille added 1 commit 2023-12-04 23:23:16 +01:00
Sebastian Sille added 1 commit 2023-12-05 01:15:29 +01:00
d33a391d94 Import_max: Added corona material
Added material properties for corona renderer
Sebastian Sille added 1 commit 2023-12-05 02:14:53 +01:00
3648a9546e Cleanup: Import_max
Cleanup code and style
Sebastian Sille added 1 commit 2023-12-06 22:56:35 +01:00
2007e4bf8a Cleanup: Import_max
Removed unused code
Campbell Barton requested changes 2023-12-07 14:06:24 +01:00
Campbell Barton left a comment
Owner

Tested this to import: https://www.cgtrader.com/items/612400/download-page
quite a lot of objects are out of place but at least there were no errors.

This review is only on the basics, requests:

  • Use a package io_scene_max where __init__.py just defines the operator & UI.
  • Move import logic into io_scene_max/import_max.py (lazy import this sub-module when the user activates import, improves blender startup time).
  • Run autopep8 on the script, the formatting is generally improved.
  • Also, try run a checker such as ruff or pylint, there are various warnings that aren't severe but nice to resolve.
Tested this to import: https://www.cgtrader.com/items/612400/download-page quite a lot of objects are out of place but at least there were no errors. This review is only on the basics, requests: - Use a package `io_scene_max` where `__init__.py` just defines the operator & UI. - Move import logic into `io_scene_max/import_max.py` (lazy import this sub-module when the user activates import, improves blender startup time). - Run autopep8 on the script, the formatting is generally improved. - Also, try run a checker such as `ruff` or `pylint`, there are various warnings that aren't severe but nice to resolve.
Author
Member

Tested this to import: https://www.cgtrader.com/items/612400/download-page
quite a lot of objects are out of place but at least there were no errors.

This review is only on the basics, requests:

  • Use a package io_scene_max where __init__.py just defines the operator & UI.
  • Move import logic into io_scene_max/import_max.py (lazy import this sub-module when the user activates import, improves blender startup time).
  • Run autopep8 on the script, the formatting is generally improved.
  • Also, try run a checker such as ruff or pylint, there are various warnings that aren't severe but nice to resolve.

@ideasman42 Okay will do that, the object placement problem is the same like in the .3ds importer. If the max scene has applied transformation then it works perfect. I also added an option to apply the matrix from the file, sometimes there will be better results.

> Tested this to import: https://www.cgtrader.com/items/612400/download-page > quite a lot of objects are out of place but at least there were no errors. > > This review is only on the basics, requests: > > - Use a package `io_scene_max` where `__init__.py` just defines the operator & UI. > - Move import logic into `io_scene_max/import_max.py` (lazy import this sub-module when the user activates import, improves blender startup time). > - Run autopep8 on the script, the formatting is generally improved. > - Also, try run a checker such as `ruff` or `pylint`, there are various warnings that aren't severe but nice to resolve. @ideasman42 Okay will do that, the object placement problem is the same like in the .3ds importer. If the max scene has applied transformation then it works perfect. I also added an option to apply the matrix from the file, sometimes there will be better results.
Sebastian Sille added 1 commit 2023-12-07 16:37:31 +01:00
Sebastian Sille added 1 commit 2023-12-07 16:38:56 +01:00
Sebastian Sille added 1 commit 2023-12-07 16:39:11 +01:00
Sebastian Sille added 1 commit 2023-12-07 16:41:40 +01:00
Sebastian Sille added 1 commit 2023-12-07 16:46:47 +01:00
Sebastian Sille added 1 commit 2023-12-07 16:47:33 +01:00
Sebastian Sille added 1 commit 2023-12-07 16:47:44 +01:00
Sebastian Sille added 1 commit 2023-12-07 16:48:56 +01:00
Sebastian Sille added 1 commit 2023-12-07 16:49:09 +01:00
Author
Member

@ideasman42 Everthing done now^^

@ideasman42 Everthing done now^^
Sebastian Sille requested review from Campbell Barton 2023-12-07 17:21:48 +01:00
Sebastian Sille closed this pull request 2023-12-08 14:27:43 +01:00
This repo is archived. You cannot comment on pull requests.
No reviewers
No Label
No Milestone
No Assignees
2 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons-contrib#22
No description provided.