I am trying to create a material tag using either a ‘leader’ or a ‘dot’ in Rhino. I want the material tag to be able to attach to an object and then generate either the ‘material name’ or the ‘layer name’ so that the objects will display either of those pieces of information. Sadly I am having no luck. The formula I have tried for layer name is ‘%<ObjectLayer()>%’, and the formula I have tried for the material is ‘%<ObjectMaterialName()>%’.
Does anyone know if this might be possible. See screenshots attached.
This is a very common function in other programs such as Revit or Vectorworks and I have also attached a screenshot of these so that you can see the result I am trying to achieve.
Thanks Martin, the ‘fx’ symbol works for applying to the current layer that I am on. But it doesn’t attach to the object and then read the ‘material’ from that object
What’s missing here is a “link” from the annotation object to the object from which you are trying to extract information from.
As Martin pointed out, you need to click the fx button in the text editor and then pick, e.g., ObjectLayer and then the Select Object button which lets you then pick that other object. This then results into something like %<ObjectLayer("52c436c2-b28a-4cde-b605-fbe943217ab0")>% where the GUID links to that object.
If you are stuck, please post a .3dm file that can be used to troubleshoot this issue.
-wim
Thanks for this Wim. I have tried and can confirm that it works. But, the issue with this is that it’s a very lengthily process to do for hundreds of objects. Is there a formula that you could add to a ‘dot’ for example that would produce the same result?