Hi - these questions don’t appear to have anything to do with Kangaroo.
About question 1: could you post a *.gh file that shows how far you have gotten or at least explain in detail what you are trying to achieve? If you don’t have any GH definition so far, some sketches might help.
About question 2: you can use the Custom Preview to change the appearance of Grasshopper geometry in the Rhino viewport.
-wim
… I’m not totally sure, but I’m getting the impression that this is a ShapeDriver-specific question and am accordingly changing the category for this thread.
As for explaining a question in detail, please make an effort to reduce a problem to the fewest component that are needed for others to understand what you are asking.
I couldn’t zoom out any further - I’m afraid you shouldn’t expect others to make sense of something like this:
Any type of grips from the Rhino viewport (the red arrow you are mentioning below, or the point grips that you can define with Kangaroo and its “Grab” component) are not going to be compatible with ShapeDiver, simply because there can’t be any interactions with a Rhino document once the model is online.
We have plans to release new components in the ShapeDiver plugin to define different kinds of grip inputs in the online viewer. I will keep you updated about those. In the meantime, the best solution is to:
Define sliders or ShapeDiver text inputs containing point locations in the Grasshopper definition
Create point grips or other types of draggable geometry in the ShapeDiver viewer using the API.
Connect those grips with the corresponding Grasshopper inputs, again using the API.
You can actually find a detailed tutorial explaining exactly this process in our documentation:
On shapediver forum I never get a fullfill answer all the answers based on “go to javascript pro”
So I understand that if I dont know or cant find a jawascript pro , I cant use Shapediver.?
even for a simple questions you all the time lead me to API platform and also in APı platforms I thing is not enough… maybe you can make everything easier for all of grasshopper users…
Even I asked before Where I put javascript code embed on web page…
Language is part of the problem here. Your thread title is still very poor, as are the quality of your questions. This would be a much more informative thread title: “Drag a point directly on Shapediver?”
The answers you seek are on the tutorial page referred to above, you just don’t have the Javascript skills to understand it. I haven’t installed the plugin yet (though I may give this one a try) but was able to understand enough to define a couple of points on the head. If you copy/paste the following as input to the model on Shapediver, two red points appear (with a blue line between them?):
I can’t blame you for expecting that every existing Rhino and Grasshopper feature will work out of the box on ShapeDiver. Not that it’s not unrealistic - it bloody well is - but it is in fact a beautiful vision, for a somewhat distant future. However, we are in the field of cloud technologies, and don’t yet dabble in sorcery, except for some unsatisfactory experiments.
That being said, I truly apologize for invoking the API so much when I answer your questions. We are doing our best to make ShapeDiver a designer-first tool. It’s the vision, after all: we want to give Grasshopper designers the ability to create complex web applications, without the help of a skilled developer. Therefore, we iterate along those lines:
Identify a feature needed by our users
Upgrade the online viewer and its API so that the feature can be tested and become available to developers
Connect the viewer feature with additional Grasshopper components or rules so that designers can access it as well
In the present case, I agree it makes complete sense to have a “Point Grip” tool in the ShapeDiver plugin, which would create a draggable element in the online viewer acting as an input to the definition. As a matter of fact, this is a need we already identified and built in the online viewer (steps 1 and 2). We only miss step 3). I will make sure to let you know when it happens.
Please scroll down the tutorial page to the section called “Full code of the tutorial”, and click on the third tab in the embedded fiddle, called “Result”. There you can play with the example.
can u just give me an example how to embed a drawing to a HTML page with API setings. (for an example.)so that I can try to understand how to manage other comments for API uses.
Have you looked at the ShapeDriver documentation? Like API access, embedding a model on a web page, in an iFrame, appears to be a PRO feature only ($100/month - ouch!):
Are you a PRO ShapeDriver user? The nature of your questions suggests otherwise, in which case you can’t do anything related to the API or embedding. Trying to be helpful but will say no more. Ciao.