Dynamic components help


#1

Hi,

I have been trying to test the dynamic components function. I am setting the dynamic component with the on click command on sketchup to open a door, it works fine on sketchup with the interactive tool, but on vr sketch I cannot open the door. Do I have to use another command on sketchup? I understand from your video that you are using the teleport tool and when you reach the component youjust have to pull the trigger to open the door, is that right?

Best
Philippe


#2

Hi,

Yes, that’s correct. Note that not all usages of on_click are supported: only the ones where you have directly ANIMATE("X", 0, 100) or a variant with "RotZ" or with another similar function like ANIMATESLOW. It doesn’t work if the variable being animated is not one of X, Y, Z, RotX, RotY or RotZ.

You have to use the teleport tool and move your hand over the door, really touching it (being just in front is not enough).

I hope this helps!
Armin


#3

Hi Armin,

Ok. Now I understand. I used to put a name for the attribute, like ANIMATE(“Open”,0,90) instead of using directly X, Y, Z, RotX, RotY or RotZ, and then on the Rotation field I was using RotZ = Open.

I will give it a try. Thank you.

Best,
Philippe


#4

Hi Armin,

Now it’s working perfectly!!! Thank you for your support. Is there a way to animate a movement like in sketchup? It is nice to be able to open or close a door manually, I really love it, but for some things, like a garage door opening for example, it would be nice to be able to automate the movement, as it works in sketchup.

Best,
Philippe


#5

Right, you have a point. This was designed with small doors and drawers in mind. For garage doors you’d probably prefer the movement to be automated, and triggered at distance, too.

The animation speed could be extracted from the ANIMATExxx function call—it is ignored so far in VR Sketch. I’ll consider adding support for that. In the unreleased development version of VR Sketch, the user uses a custom tool instead of “teleport”, because we think it’s better to keep the functionality separate; it also happens to give us a nice place to add the animations-triggered-at-distance user interface.


#6

Great idea. Can’t wait to play with it!