feat(comfy_api): add basic 3D Model file types #12129
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This should make possible to properly implement Convert Format nodes (GLB -> FBX, etc.) or pass a 3D model generated by one API service as input to another (e.g., generate with
Meshy-> texture withHunuyan3D Pro)Changes
comfy_api/latest/_util/geometry_types.py): Stores 3D model data in memory as BytesIO with format metadatacomfy_api/latest/_io.py):File3DAny- generic 3D file typeFile3DGLB,File3DGLTF,File3DFBX,File3DOBJ,File3DSTL,File3DUSDZ- format-specific typesdownload_url_to_file_3dhelper: task_id optional; when provided, also writes file to disk for backward compatibilityBackward Compatibility: Existing workflows continue to work - nodes output both the new typed File3D objects and the original string file paths.
API Node PR Checklist
Scope
Pricing & Billing
If Need pricing update:
QA
Comms