Insert to Array will error on reload

Ive been using an ‘Insert’ to array from a ‘Get Material’ node and works great until I close and reopen the project. Otherwise, the Insert works fine and dandy. After saving, closing, then reopening the project, the error is shown thus:

283999-error3.jpg

Here it is working just fine before closing and reopening the project.

When the nodes have ‘error’ on them, what does it say in the compiler window ( at the bottom )?..

… and is that an array of 'material interface object reference’s?

Yes, one is ‘material object reference’, the other is ‘material interface object reference’.

I only have ‘material interface object’ on my system, did you create the other type?..

When I try and recreate your scenario the type coming from the GetMaterial node is ‘material interface object reference’. This is also the only variable type ( for the array ) I can make.

But in the error, it talks about ‘material object reference’. That’s apparently why they don’t match up.

It’s the only strange thing I can see…

Yes, i hear you… :slight_smile:

Just out of interest, how is the array made? Static declaration, make array, etc?

Perhaps a staff member will take a look.

Material Interface and Material Object. I’m sure the nodes are correct. I’m checking the array details.

The error is obvious, the correction was elusive. The bug might be that it was working haha!

The bug might be that it was working! Haha!
I changed the variable type of the array. Thanks for the reply.

You’re welcome…

Not the answer I was looking for either but I can move forward now. Thanks again. :slight_smile: