Michael Kowalski makowalski
  • Joined on 2020-09-17
Michael Kowalski commented on pull request blender/blender#118938 2024-04-19 00:43:39 +02:00
USD: Import and export custom properties

@CharlesWardlaw I'm done with the revisions I had in mind and have a couple of questions/comments. I welcome your feedback. Thanks!

Michael Kowalski commented on pull request blender/blender#118938 2024-04-19 00:43:38 +02:00
USD: Import and export custom properties

I don't believe 'add_properties_namespace' and 'author_blender_name' are not actually exposed in the UI. I wonder if they should be? For example, I can imagine cases where automatically adding the 'userProperties' namespace might not be desirable, so maybe this behavior should be optional. I'm open to other opinions about this, of course.

Michael Kowalski commented on pull request blender/blender#118938 2024-04-19 00:43:37 +02:00
USD: Import and export custom properties

I wonder whether we should rename this "Import Custom Attributes" to make it very clear that this only applies to custom attributes and not primvars. Likewise, maybe the related enums should have "custom" in the name (e.g., rename USD_ATTR_IMPORT_NONE to USD_CUSTOM_ATTR_IMPORT_NONE). But am open to feedback on this, as maybe this is already clear.

Michael Kowalski commented on pull request blender/blender#118938 2024-04-19 00:08:05 +02:00
USD: Import and export custom properties

@deadpin I just removed the WIP tag, as I believe this PR is now ready for review.

Michael Kowalski pushed to feature/custom_properties at CharlesWardlaw/blender 2024-04-19 00:02:20 +02:00
02f71094ed USD: fix duplicated custom properties on import
Michael Kowalski commented on pull request blender/blender#118938 2024-04-18 23:34:49 +02:00
USD: Import and export custom properties

IMHO, using std::optional here and elsewhere might not be necessary as it can be easily replaced with parameter pxr::UsdTimeCode motionSampleTime = pxr::UsdTimeCode::Default(). I'll make this change, but am certainly open to discussing this and we can change it back if necessary.

Michael Kowalski commented on pull request blender/blender#118938 2024-04-18 23:29:59 +02:00
USD: Import and export custom properties

I noticed that this call to set_props() in create_object() here and in the other reader implementations can cause a bug, in that if use_parent_xform() evaluates to false then the prim properties are duplicated on both the object and its data. E.g., if you load the custom_attr.usda you can see the duplicated properties.

Michael Kowalski pushed to feature/custom_properties at CharlesWardlaw/blender 2024-04-18 01:25:31 +02:00
cc8311d217 USD: using CLOG instead of printf and std::cout
6282da7bc9 USD: added license headers
56ea504ca5 USD: remove unneeded includes
056a96f47b USD import: delay creating custom properties
Compare 4 commits »
Michael Kowalski commented on pull request blender/blender#118938 2024-04-17 01:34:12 +02:00
USD: Import and export custom properties

Added support for bool, asset, half and arbitrary tuple types on import and bool type on export.

Michael Kowalski pushed to feature/custom_properties at CharlesWardlaw/blender 2024-04-17 01:30:44 +02:00
fa78fca2d2 USD: fixed formatting
698b47a3e4 USD: Support additional custom attribute types
Compare 2 commits »
Michael Kowalski commented on pull request blender/blender#120236 2024-04-16 21:00:27 +02:00
USD import: add support for displayColor on non-Mesh USD shape prims

@Matt-McLin @deadpin I can probably merge in my proposed changes for the animating attributes into this PR this week. I'll add a comment here when I've started working on this, so we don't…

Michael Kowalski commented on pull request blender/blender#118938 2024-04-16 17:46:33 +02:00
USD: Import and export custom properties

Per discussion with @CharlesWardlaw, I'm extending the current implementation to handle a wider range of USD attribute types. I will mark the pull request as WIP until I've completed these changes.

Michael Kowalski pushed to feature/custom_properties at CharlesWardlaw/blender 2024-04-13 01:50:48 +02:00
a9b055b268 USD: fixed conflicts from previous merge
be905f1342 Merge branch 'main' into feature/custom_properties
c91449836a Cleanup: Move BKE_workspace.h to C++
75077a8b0e Refactor: Move node tools OperatorComputeContext to blenkernel
77638a6bec EEVEE-Next: Fix missing shadow caused by ray going below surface
Compare 1472 commits »
Michael Kowalski pushed to universal-scene-description at blender/blender 2024-04-11 19:57:41 +02:00
b12cd2ed77 Fix: USD: custom properties fail to import
6c1d7be46b USD: clean up Map lookup call
Michael Kowalski deleted branch usd_fix_animated_privar_import from makowalski/blender 2024-04-11 17:22:59 +02:00
Michael Kowalski merged pull request blender/blender#120500 2024-04-11 17:22:56 +02:00
Fix: USD: animated primvar import
Michael Kowalski pushed to main at blender/blender 2024-04-11 17:22:56 +02:00
65748260f9 Fix: USD: animated primvar import
Michael Kowalski deleted branch usd_fix_animated_privar_import from blender/blender 2024-04-11 17:13:59 +02:00
Michael Kowalski pushed to usd_fix_animated_privar_import at makowalski/blender 2024-04-11 17:11:22 +02:00
ed4cc12bee USD: clean up Map lookup call