Isotropix Forums

objects losing materials on reopening of scripts

General Discussion about Isotropix and CG related topics

objects losing materials on reopening of scripts

Unread postby kai01w » Sun Jul 19, 2020 2:15 pm

Hi,

I have a reoccuring issue that is a bit random (at least I could not identify a pattern) which pops up quite frequently but is also "old" in that I have it since a few versions of clarisse:
I create a project in which I work on a single asset (mostly 3d plants). I have the geo in one context and all materials in another context on the same level called "shading". Once I am happy with my plant, I put these two into a parent context and export that as a project. I then import that project into my actual work scene project (basically as a single asset). Everything looks fine.
When I save and close that project and open it later, my objects that I had just imported have lost their materials. In the material linker the materials are crossed out and the icons have a little red "X" next to it.
Also, there is now a dublicate of the "shading" folder on the top level of the scene, again with a line through it and a red X. Inside that folder are the materials (without the textures), again, deactivated, red X. The original "shading" folder is still it its original place with everthing included.
I then have to reassign all materials and save the script again (and NOT delete the dublicated crossed out shading folder) and usually the problem would not come up again (at least not for that object/asset).
Any idea what this is? Should I change my workflow?

thanks
Kai
kai01w
 
Posts: 28
Joined: Fri Jan 25, 2013 11:33 pm

Re: objects losing materials on reopening of scripts

Unread postby esmith » Tue Jul 21, 2020 5:22 am

without seeing your work, and/or me duplicating here the first thing that stands out is that you should be referencing in your look dev project, not importing it. I have a semi duplicate version of your scenes workflow here and I reference in libraries like this all the time with no issues.

Check out this thread I responded to, regarding shading layers as well.

Give that a go and let us know!
User avatar
esmith
 
Posts: 190
Joined: Mon May 22, 2017 4:11 pm

Re: objects losing materials on reopening of scripts

Unread postby dboude » Tue Jul 21, 2020 8:30 am

Looks like a bug. The workaround if you don't want reference in your scene is to import the project as a reference and then make it local. In all ways, a project should be the exact same when reloading it. I will investigate.

Cheers
Démian
Isotropix
Technical Artist - Clarisse Specialist
User avatar
dboude
 
Posts: 1603
Joined: Mon Jul 03, 2017 10:51 am

Re: objects losing materials on reopening of scripts

Unread postby dboude » Tue Jul 21, 2020 9:10 am

Which kind of format do you use for the geometries ? Obj, abc ? I couldn't reproduce the issue.
Démian
Isotropix
Technical Artist - Clarisse Specialist
User avatar
dboude
 
Posts: 1603
Joined: Mon Jul 03, 2017 10:51 am

Re: objects losing materials on reopening of scripts

Unread postby Akam » Tue Jul 21, 2020 10:27 am

Hey Démian!
I had the same issue, but was thinking I did something wrong. In that case I used alembic format. I will look if I can reproduce and upload a scene. but could take some time, not much time lately....
Akam
 
Posts: 73
Joined: Thu Jan 11, 2018 6:39 pm

Re: objects losing materials on reopening of scripts

Unread postby dboude » Tue Jul 21, 2020 10:55 am

Ok, so it seems to be an override bug. I will check
Démian
Isotropix
Technical Artist - Clarisse Specialist
User avatar
dboude
 
Posts: 1603
Joined: Mon Jul 03, 2017 10:51 am

Re: objects losing materials on reopening of scripts

Unread postby Ken_M » Tue Jul 21, 2020 12:14 pm

The loss of materials upon reopening the file and the appearance of additional folders with the red x sounds exactly like my issue in the bugtracker.

https://www.isotropix.com/user/bugtracker/593

The only temporary 'fix' I found was making sure I renamed and/or moved the imported project context immediately after importing.
Ken_M
 
Posts: 82
Joined: Sun Jun 03, 2018 12:57 am

Re: objects losing materials on reopening of scripts

Unread postby dboude » Tue Jul 21, 2020 12:18 pm

Oh god ! Which version are you using kai01w ?
Démian
Isotropix
Technical Artist - Clarisse Specialist
User avatar
dboude
 
Posts: 1603
Joined: Mon Jul 03, 2017 10:51 am

Re: objects losing materials on reopening of scripts

Unread postby kai01w » Tue Jul 21, 2020 7:36 pm

Ups. sorry for the late reply. I am on 4.0 SP8. I had the issue since at least SP6, most likely on even older versions. I use mainly alembics, though I could not tell if it exclusively happens with those.

thanks

Kai
kai01w
 
Posts: 28
Joined: Fri Jan 25, 2013 11:33 pm

Re: objects losing materials on reopening of scripts

Unread postby dboude » Wed Jul 22, 2020 8:39 am

Hi,

Ok, we reproduce the bug.

When importing a project as a project (File > Import > Project) the connections between the alembic objects and the materials are good. But when saving the project the new material path is not correctly serialized.

To avoid this import the project as reference and then right-click on the reference and select Reference > Make Local. In this way, when you save the project everything is good.

Thanks
Démian
Isotropix
Technical Artist - Clarisse Specialist
User avatar
dboude
 
Posts: 1603
Joined: Mon Jul 03, 2017 10:51 am

Next

Return to General Discussion