You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fix the XForm override export and add the option to the recorder
* Remove sublayers, remove ref from root, ass tests
* Rename exportXformOverride to exportTransformOverride
* Update changelog
* Fix UI Labels to workaround layout issues
* Fixes from PR review.
- Fix for null ref exception when the source GO is not a UsdAsset
- Fix for unclear UI
* XFormable schema type should not override the actual schema type.
* Removes the reference to the original file from exported override files written out by Recorder.
* Switch transform export back to Xform from Xformable, because using base UsdGeomXformable prim types is unusual
---------
Co-authored-by: Vicky Clark <[email protected]>
Co-authored-by: Andrew Lee <[email protected]>
Co-authored-by: Vicky Clark <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+28
Original file line number
Diff line number
Diff line change
@@ -124,6 +124,34 @@ When compatibility with runtime is required (i.e for a standalone build), the re
124
124
125
125
> **Note:** This feature has no dependency to and is not based on the Recorder package.
126
126
127
+
### Exporting Transform Overrides
128
+
129
+
Modifications to transforms in USD files can be exported as overrides to the original files.
130
+
131
+
Overrides can be exported from the USD menu with the GameObject containing the UsdAsset component selected, which will export transform overrides for the entire hierarchy. Alternatively, you can also export just the overrides when exporting from the Recorder window by changing the 'Override Setting' to 'Export Transform Overrides Only'.
132
+
133
+
For full asset pipeline flexibility these override files do not include a reference to the original file, but this can be added by manually adding a sublayer in the header of the resulting USDA file:
134
+
135
+
```
136
+
#usda 1.0
137
+
(
138
+
defaultPrim = "myCube"
139
+
endTimeCode = 0
140
+
startTimeCode = 0
141
+
upAxis = "Y"
142
+
subLayers = [
143
+
@c:/path/to/original/myCube.usda@
144
+
]
145
+
)
146
+
147
+
over "myCube"
148
+
{
149
+
...
150
+
}
151
+
```
152
+
153
+
Note: Modifications to the transform of the Root GameObject is not currently reflected in the override, as Unity assumes the root in all USD files is at the origin.
154
+
127
155
# License
128
156
129
157
The USD Unity SDK is licensed under the terms of the Apache
Copy file name to clipboardExpand all lines: package/com.unity.formats.usd/CHANGELOG.md
+6-2
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,11 @@
1
-
# Changes in usd-unitysdk for Unity
1
+
# Changes in usd-unity-sdk for Unity
2
2
3
3
## Unreleased
4
+
### Features
5
+
- The USD Recorder now has an option to export transform overrides.
6
+
4
7
### Bug Fixes
8
+
- "Export Transform Override" now properly exports modified transforms only.
5
9
- Fixed a bug where importing materials exported from USD version >= 21.11 would fail.
6
10
- Fixed loading of meshes with arbitrary primvars.
7
11
- Fixed regression in animated mesh properties.
@@ -17,7 +21,7 @@
17
21
- Fixed an import bug causing instanced primitives not to be sanitized to fit Unity formats, including converting basis, triangulating and unwinding meshes, and unrolling primvars.
18
22
19
23
### Changed
20
-
- GC allocs reduced by half for Scene.GetAttributeAtPath and Scene.GetRelationshipAtPath
24
+
- GC allocs reduced by half for Scene.GetAttributeAtPath and Scene.GetRelationshipAtPath.
21
25
- Disabled plugins on unsupported platforms.
22
26
- Optimized triangulation to reduce the chance of a "Timed out while waiting for thread" error on importing a complex mesh.
0 commit comments