This should be very easy but apparently, it’s not. I don’t know if I’m missing something.
Please tell me how can get access to some value or text created inside the VA GH Style Object?
In my simple example, I just multiplied the circle area by 3, but you can imagine all sorts of calculation results that the user would like to have access to. I think they should be accessible in Grasshopper and displayed in Rhino Properties panel.
Hi @Czaja, Unfortunately it is not possible to retrieve that text in GH or in the Properties panel right now.
In VisualARQ 3 we have plans to have some kind of “Read-only” parameters for the Grasshopper styles, that will allow having “ending” components in the GH definition that will collect calculated information, and they will be displayed in the VisualARQ properties panel.
On the other hand, we can also add “texts” in the output options of the “VisualARQ Explode component”, which would also help you in that case.
I don’t consider these read-only parameters a niche thing and I must admit I’m a little unwilling to wait for them to VisualARQ 3. Especially since I’m very uncertain when it will happen.
Any workaround applicable to VisualARQ 2, to get values out of GH Styles would be really helpful, I can even explode tiny texts to get to the values.
We neither. This is actually an important new feature, that might involve UI and file format changes. We won’t likely include new features in VisualARQ 2.x versions (just fix some bugs), and that way we can focus on VisualARQ 3 sooner than later.
I’m having the same issue using VisualArq 3. I can get a property from a VA object that has already been instantiated in the active doc but I can’t get the property from a grasshopper definition. Is there a special get read only parameter for grasshopper that I’m missing?
Hi @Benjamin_Paolo_Fortu, what you are showing should work. But to make sure you are typing correctly the parameter, pick it from the Property Names component:
I tried using the item index as well but it still doesn’t work. I’ve attached the files for you to look at. I’m using Rhino 8. The text that I’m trying to get is generated dynamically through the grasshopper script.
I’m not sure what is happening under the hood. I assume that you have an in-memory database tracking these values, SQL etc? If the attributes are stored in the object with a custom data value however, then they will not be stored until the object is baked and has a guid. Likewise, if there is an in-memory database which is probably tracking via a guid, the values won’t be written into the database until a guid is created. We have the core problem with grasshopper and data, because it works with virtual geometry and data is stored with a guid, it becomes difficult to store, transmit and track data related to objects.
I don’t see any way to “bake” an object or write a value to the database with the grashopper plugin. I could bake or add an object to the active doc using a c# script but then I might have a duplicate object since I am baking my own block and then VA is going to do some object creation as well once the grasshopper style script is run and it instantiates a VA object.
Hi @Benjamin_Paolo_Fortu, thanks for the files. I can see the “read-only” output parameters are not retrieved from new objects generated in Grasshopper but only from referenced ones.
I’ll let you know when we fix this.