Page 1 of 1

Something problem about of the Clayoo for Rhino

Posted: Tue Dec 18, 2012 3:49 pm
by l1407
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

Re: Something problem about of the Clayoo for Rhino

Posted: Tue Dec 18, 2012 4:40 pm
by JDHill
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.

Re: Something problem about of the Clayoo for Rhino

Posted: Tue Dec 18, 2012 5:00 pm
by JDHill
Okay, they have a demo, which I installed, but I am not able to see the problem. What specific actions are required to reproduce the behavior? And which versions of Rhino & Clayoo are you using?

Re: Something problem about of the Clayoo for Rhino

Posted: Tue Dec 18, 2012 7:40 pm
by l1407
I am using rhino 5 64bit and clayoo 1.0. The lose material case is happening on the on/off the edittion mode.

thank you very much! :D

Re: Something problem about of the Clayoo for Rhino

Posted: Tue Dec 18, 2012 8:48 pm
by JDHill
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.

Re: Something problem about of the Clayoo for Rhino

Posted: Wed Dec 19, 2012 3:48 pm
by l1407
thank you very much! Clayoo developer ask to me, that is a bug, they will solve it in next release.