-
assigned issue to
BUG: Objects with the same name overwrite each other.
If I make a Cube in C4D, and then make another Cube in C4D (with the same name)
Then transfer them to Unreal, only the last object named Cube will be visible. This is because all subsequent objects with the same name overwrite the first.
It seems like something other than Object Name needs to be used to establish the link between the two scenes if a duplicate object is detected in the project file.
Comments (13)
-
reporter -
reporter -
assigned issue to
-
assigned issue to
-
Yes, this is a known problem. When developing the plugin, I looked into how to establish a link between objects and found that the unique IDs generated by Cinema4D seemed to not be necessarily globally unique and not permanent, though I may be mistaken about how this actually works. Furthermore, materials do not seem to have unique IDs the same way that objects do. So I decided to just use names to identify which objects and materials to overwrite when exporting to Unreal.
Coming up with a better solution for this is something that will have to be left to consider in possible future versions and in the meantime, please make sure that objects and materials have unique names.
-
reporter Possible Solutions: - Auto-rename objects with duplicate names on export. - Add a custom tag to all exported objects with some sort of unique ID.
-
Yes, I was thinking about that. But I'm not sure whether to rename just the imported objects in Unreal or to actually rename the objects in the Cinema4D scene. The latter might cause problems because people probably expect the plugin the leave their scenes intact, but the former could also cause problems if the generated unique name in Unreal is not the same at every export. I might have to go with just renaming in Unreal as I really want to leave the Cinema scene untouched.
-
reporter Prompt the user and rename in Cinema 4D.
Duplicate object names detected. Names must be unique for proper syncing. [AutoRename] [Cancel]
-
Okay, I'll take care of that.
-
I've fixed this now.
-
reporter Big Improvement, thanks!
If you get the chance to revisit this bit of code:
- "Auto rename" -> "Auto Rename"
- Fit the size of the buttons to the size of the text.
- Add a line break between "Duplicate object names detected." and "Names must be unique for proper syncing."
- Add a bit of padding on the sides of the dialog and between the buttons.
- Fit the width/height of the dialog to that of the text/buttons.
-
reporter Remaining issue: If I click on "Auto Rename" the objects are renamed, but they aren't sent to UE. After auto-rename they should be transferred.
-
reporter Also, as Materials w/ the same name can also trigger this, perhaps the text should change to "Duplicate object/material names..."
-
reporter - changed status to resolved
-
reporter Issue
#17was marked as a duplicate of this issue. - Log in to comment