MeshSyncDCCPlugins icon indicating copy to clipboard operation
MeshSyncDCCPlugins copied to clipboard

Sync visibility state of objects?

Open bitinn opened this issue 2 years ago • 12 comments

Hi,

I am wondering if there is any plan to add support for visibility (enable/disable) state of objects. It seems like good feature to have given the lack of support for grouping or selected object sync?

(I used Blender plugin only, not sure about other DCC)

Thx in advanced.

bitinn avatar Feb 25 '22 03:02 bitinn

Alternatively, if we can use "Exclude from View Layer" in Blender as an indicator to not sync a mesh, that would be great too.

bitinn avatar Feb 25 '22 06:02 bitinn

Thank you for the feedback. We don't have any plan to address this in the following 1 or 2 months, but we'll consider it after.

sindharta avatar Feb 25 '22 07:02 sindharta

Related PR: https://github.com/Unity-Technologies/MeshSyncDCCPlugins/pull/183

sindharta avatar Apr 11 '22 02:04 sindharta

@sindharta may I ask if the merged PR is all it needs to support visibility sync between blender and unity? if so, would there be a new DCC plugin release in near future?

bitinn avatar Apr 19 '22 04:04 bitinn

may I ask if the merged PR is all it needs to support visibility sync between blender and unity?

I think so. We are preparing a release at the moment. Hopefully, we'll be able to release it in late April.

sindharta avatar Apr 19 '22 10:04 sindharta

Can you please try [email protected], and reinstall the Blender plugin that is compatible with it ?

sindharta avatar Apr 26 '22 11:04 sindharta

@sindharta I just tried it with Blender 3.1.2 and visibility sync doesn't appear to work.

Objects are synced but their states are all enabled. I am not sure what else I need to do to make this work, as visibility toggle is checked on my mesh sync server object.

I tried removing the plugin and reinstall, the result is the same.

Screen Shot 2022-04-27 at 16 45 51 Screen Shot 2022-04-27 at 16 46 17 Screen Shot 2022-04-27 at 16 46 43 Screen Shot 2022-04-27 at 16 47 02

bitinn avatar Apr 27 '22 08:04 bitinn

I also tried "disable render" toggle (the second camera icon) in Blender, same result

bitinn avatar Apr 27 '22 08:04 bitinn

meshsync-test.blend.zip

sharing my blend file here in case @seandillon92 needs to take a look at them :)

bitinn avatar Apr 27 '22 08:04 bitinn

Hey @bitinn , I downloaded your file and I am able to control the visibility with "Exclude from View Layer" but not with the "Hide in Viewport" or "Disable in Renders" as you mentioned. We will look into it, thank you for reporting this!

seandillon92 avatar Apr 27 '22 09:04 seandillon92

I also tried "disable render" toggle (the second camera icon) in Blender, same result

This is working for me, only for objects and only when using manual sync. It disables the mesh renderer in Unity. Hope it helps until we solve the issue properly.

seandillon92 avatar Apr 28 '22 10:04 seandillon92

I also tried "disable render" toggle (the second camera icon) in Blender, same result

This is working for me, only for objects and only when using manual sync. It disables the mesh renderer in Unity. Hope it helps until we solve the issue properly.

Hi, so I just tested, and can confirm the behavior is:

  • "Exclude from View Layers" => Gameobject is disabled
  • "Hide in Viewport" => ignored
  • "Disable in Viewports" => ignored
  • "Disable in Renders" => MeshRenderer is disabled

My only gripe with this: there isn't a way to map "disable in blender viewport" to "disable in unity scene view", because "Exclude from View Layers" is collection only AFAIK.

bitinn avatar Apr 28 '22 11:04 bitinn