Skip to content

Add parameterized constructor for FileSaveOptions Python binding#825

Closed
yutingye wants to merge 1 commit intomainfrom
export-D86904749
Closed

Add parameterized constructor for FileSaveOptions Python binding#825
yutingye wants to merge 1 commit intomainfrom
export-D86904749

Conversation

@yutingye
Copy link
Copy Markdown
Contributor

Summary:
This change adds a parameterized constructor to the FileSaveOptions Python binding, enabling users to initialize all member variables directly when creating the object instead of having to set them one by one after construction.

This improves the API ergonomics by allowing cleaner initialization patterns:

options = FileSaveOptions(mesh=False, locators=True, blend_shapes=False)

Reviewed By: cstollmeta, jeongseok-meta

Differential Revision: D86904749

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 15, 2025
@meta-codesync
Copy link
Copy Markdown
Contributor

meta-codesync Bot commented Nov 15, 2025

@yutingye has exported this pull request. If you are a Meta employee, you can view the originating Diff in D86904749.

facebook-github-bot pushed a commit that referenced this pull request Nov 15, 2025
Summary:

This change adds a parameterized constructor to the FileSaveOptions Python binding, enabling users to initialize all member variables directly when creating the object instead of having to set them one by one after construction.

This improves the API ergonomics by allowing cleaner initialization patterns:
```python
options = FileSaveOptions(mesh=False, locators=True, blend_shapes=False)
```

Reviewed By: cstollmeta, jeongseok-meta

Differential Revision: D86904749
facebook-github-bot pushed a commit that referenced this pull request Nov 15, 2025
Summary:

This change adds a parameterized constructor to the FileSaveOptions Python binding, enabling users to initialize all member variables directly when creating the object instead of having to set them one by one after construction.

This improves the API ergonomics by allowing cleaner initialization patterns:
```python
options = FileSaveOptions(mesh=False, locators=True, blend_shapes=False)
```

Reviewed By: cstollmeta, jeongseok-meta

Differential Revision: D86904749
facebook-github-bot pushed a commit that referenced this pull request Nov 15, 2025
Summary:

This change adds a parameterized constructor to the FileSaveOptions Python binding, enabling users to initialize all member variables directly when creating the object instead of having to set them one by one after construction.

This improves the API ergonomics by allowing cleaner initialization patterns:
```python
options = FileSaveOptions(mesh=False, locators=True, blend_shapes=False)
```

Reviewed By: cstollmeta, jeongseok-meta

Differential Revision: D86904749
facebook-github-bot pushed a commit that referenced this pull request Nov 15, 2025
Summary:

This change adds a parameterized constructor to the FileSaveOptions Python binding, enabling users to initialize all member variables directly when creating the object instead of having to set them one by one after construction.

This improves the API ergonomics by allowing cleaner initialization patterns:
```python
options = FileSaveOptions(mesh=False, locators=True, blend_shapes=False)
```

Reviewed By: cstollmeta, jeongseok-meta

Differential Revision: D86904749
facebook-github-bot pushed a commit that referenced this pull request Nov 15, 2025
Summary:

This change adds a parameterized constructor to the FileSaveOptions Python binding, enabling users to initialize all member variables directly when creating the object instead of having to set them one by one after construction.

This improves the API ergonomics by allowing cleaner initialization patterns:
```python
options = FileSaveOptions(mesh=False, locators=True, blend_shapes=False)
```

Reviewed By: cstollmeta, jeongseok-meta

Differential Revision: D86904749
Summary:

This change adds a parameterized constructor to the FileSaveOptions Python binding, enabling users to initialize all member variables directly when creating the object instead of having to set them one by one after construction.

This improves the API ergonomics by allowing cleaner initialization patterns:
```python
options = FileSaveOptions(mesh=False, locators=True, blend_shapes=False)
```

Reviewed By: cstollmeta, jeongseok-meta

Differential Revision: D86904749
facebook-github-bot pushed a commit that referenced this pull request Nov 15, 2025
Summary:

This change adds a parameterized constructor to the FileSaveOptions Python binding, enabling users to initialize all member variables directly when creating the object instead of having to set them one by one after construction.

This improves the API ergonomics by allowing cleaner initialization patterns:
```python
options = FileSaveOptions(mesh=False, locators=True, blend_shapes=False)
```

Reviewed By: cstollmeta, jeongseok-meta

Differential Revision: D86904749
facebook-github-bot pushed a commit that referenced this pull request Nov 15, 2025
Summary:

This change adds a parameterized constructor to the FileSaveOptions Python binding, enabling users to initialize all member variables directly when creating the object instead of having to set them one by one after construction.

This improves the API ergonomics by allowing cleaner initialization patterns:
```python
options = FileSaveOptions(mesh=False, locators=True, blend_shapes=False)
```

Reviewed By: cstollmeta, jeongseok-meta

Differential Revision: D86904749
@meta-codesync meta-codesync Bot closed this in 3c76881 Nov 15, 2025
@meta-codesync
Copy link
Copy Markdown
Contributor

meta-codesync Bot commented Nov 15, 2025

This pull request has been merged in 3c76881.

@jeongseok-meta jeongseok-meta deleted the export-D86904749 branch November 16, 2025 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. fb-exported Merged meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants