I am looking for some information on how to setup a “controller” Grasshopper/Shapediver model that instantiates 2 or 3 other Grasshopper/Shapediver models. I saw the feature preview a few months ago and also version 1.27 had it as part of the release notes.
Is there some documentation available as to how the instances work, how to reference specific ShapeDiver models and how to drive the AppBuilder to allow parameter changes to those specific instantiated models?
The tutorial library does not yet have an example and the features are not fully documented, as these are still experimental, I understand. But would love to try it out.
We are releasing version 1.29 in the next few days. This version will include a new component to create instances and send them to the App component, which will make the feature much easier to use. I will update this topic once this is released and include an example model.
There is no documentation yet, and only a prototype version which requires some JSON gymnastics. I will spare you the headache and myself the many questions; it will make much more sense getting started with the upcoming release (coming before the end of next week).
Any chance of getting an example file for reference?
Imagine a shapediver model which references 2 other shapediver models.
I have 3 main queries:
how do I reference the right session ID for each when defining an instance? what is the session ID ? is that the model slug? I understand when using the API it gets generated at that level, but I am talking about pure Grasshopper now and the definition of a session ID for the grasshopper components.
for each sub-model, I understand that I can use parameter controls + session ID to control that individual model’s parameters (by using the right names, etc). is this correct?
how can I retrieve some data from a sub-model and use it in the “control model”? for example I need to retrieve perhaps a plane of some reference geometry?
Are there any updates on this question please?
I also note that the Define Instance page, which I assume would solve this issue, is still empty. Looking forward to your assistance here. Thank you!
I really need to progress on this and I would be grateful for answers to these questions please.
I need guidance on the ShapeDiver Grasshopper plugin and have 3 main queries:
how do I reference the right session ID for each when defining an instance? what is the session ID in the GH plugin context? is that the model slug? I tried the embedding tickets, the viewer ticket, slug, modelURL and other combinations..
for each sub-model, I understand that I can use parameter controls + session ID to control that individual model’s parameters (by using the right names, etc). is this correct?
how can I retrieve some data from a sub-model and use it in the “control model”? for example I need to retrieve perhaps a plane of some reference geometry?
I will appreciate the tutorial and documentation once it is out, but really it’s these questions that are burning at the moment. Thank you!
You need to use a theme file in which you specify the slug(s) of the model(s) you want to instantiate.
No, you need to recreate the parameters you want to control in the controller model and send their values to the Parameter input of the “Define Instances” component.
This is not possible yet. We are evaluating solutions for this use case, but this will likely take some time.
Also note that this feature is in an early beta phase and will likely be subject to significant changes (possibly breaking) in the near future.