#363722
When I applied a maxwell render material on the Clayoo object, (Clayoo is a plugin for rhino) and than I using Clayoo to edit the same object, the edited object to erase the material. How can I solve it? :oops:

Thank you very much! :D
#363724
Each Maxwell material has a unique ID that is stored in the data of a Rhino material, associating it with that Rhino material. An object's material assignment is stored as an index in its "attributes", which points to to a particular material in Rhino's list of materials . So the material assignment of a modified object depends on how the code doing the modification handles the object's attributes. Take for example running a boolean union on two cubes, each with a different material: which material does the resulting object have? It is up to the BooleanUnion command to decide. If a plugin modifies an object, and that object loses its material, there are only a few possibilities:
  1. That the behavior is no different with Rhino materials than with Maxwell ones.
  2. That the modifying code is not transferring attributes during modification.
  3. That the modifying code is creating new materials and:
    1. The new materials are not copied from existing ones.
    2. There is a bug relating to the copying of material data.
So the first thing to check is how it behaves with Rhino materials. If the same behavior is not present with those, this would rule out the second possibility. If there is no problem with Rhino materials, though, then we need to know what Clayoo is doing when it modifies the object. It either needs to assign existing materials, or duplicates of them. If that is what it is doing, then it would indicate some problem with the copying of materials, which could either be on Clayoo's side, or Rhino's. I will see if there is a demo I can try, to check it out here.
#363745
I see what you mean. It has nothing to do with the Maxwell plugin -- the same happens if you give the object a Rhino material. So there is nothing you can do about it -- when you switch modes, a mesh is deleted from the document, and a Clayoo object is added, or vice versa. You could talk to the Clayoo developers about it; I am not sure how their code works, so I am not sure if it can be changed. If you talk to them, though, make sure that you do not confuse things by referring to the Maxwell plugin; just tell them that you want materials (and other object attributes -- notice that everything is lost, including layer assignment, etc) to remain assigned when you switch modes.
Help with swimming pool water

Hi Andreas " I would say the above "fake[…]

render engines and Maxwell

Other rendering engines are evolving day by day, m[…]