Page 1 of 1

Tutorial using Dynamic Components

Posted: Tue Feb 21, 2012 3:30 pm
by mallen
Would you make a tutorial using Dynamic Components ? I would like to show movement of objects within my animations.
Here is an example of what I would like to do in Light Up. http://www.youtube.com/watch?v=QKD2KdaXGdk

Thanks,
mallen

Re: Tutorial using Dynamic Components

Posted: Tue Feb 28, 2012 8:58 pm
by AdamB
Coming soon!

Re: Tutorial using Dynamic Components

Posted: Tue May 15, 2012 2:55 pm
by mallen
Any progress on the Dynamic Components tutorial?

Regards,
mallen

Re: Tutorial using Dynamic Components

Posted: Tue May 15, 2012 3:40 pm
by AdamB
Thanks for the bump. Keeps falling off the end of the TODO list!

But to specifically answer your question, the steps would be:

1. Create a Component and select it.
2. From the "Dynamic Components" toolbar, choose 'Component Attributes'
3. Click 'add attribute'
4. Choose 'onClick' behaviour and set it to: animate('rotz',0,360)

I find using "Realtime Sun" mode handy when iterating on this stuff, but whatever you choose, start Tourtool and click on your Component.

It should rotate quickly around the Z-axis and then stop. Clicking it again will rotate in the opposite direction.

5. Exit Tourtool and Edit the 'onClick' behaviour to be: animate('rotz',0,360), flyback and restart Tourtool.

Now clicking it will still rotate a full 360 and stop, however clicking it again makes it instantly jump back to the start rotation.

6. Exit Tourtool and Edit the 'onClick' behaviour to be: animate('rotz',0,360), flyback,forever and restart Tourtool.

Now it will instantly jump back and continue rotating forever.

7. Exit Tourtool and Edit the 'onClick' behaviour to be: animate('rotz',0,360), flyback,forever,time=4.5 and restart Tourtool.

Now it will rotate forever and take 4.5 seconds to perform 1 rotation.

Try something like these to get the hang of it:

animate('rotz',0,180),forever,time=1.5

animate('rotz',0,180),forever,time=1.5,delay=3.0

OK, now for something more interesting. LightUp will automatically activate ComponentInstances with the same Name at the same time, so select your Component, choose the Move tool and Alt+drag to create a copy.

Select both Components, use menu Window->Entity Info and give a Name to your Components. eg "TESTING"

Start Tourtool and click on a Component. Both will be activated together.

Select the second Component and edit its Dynamic Component behaviour to:

animate('rotz',0,180),forever,time=1.5,delay=3.5

Start Tourtool and click on a Component. The second Component waits for 0.5 seconds longer before starting.

Using this, you can create linked animations the fire off each other.

Adam

Re: Tutorial using Dynamic Components

Posted: Wed May 16, 2012 1:43 pm
by mallen
Thanks for the information. Looks like I need SketchUp Pro for dynamic components.

Regards,
mallen

Re: Tutorial using Dynamic Components

Posted: Wed Feb 04, 2015 12:28 am
by slugore
I'm going to bump this thread again just because I think that this is a very useful Tutorial.
I wonder if there is a full list of the commands like transform, translate, rot(ate) somewhere that I can refer to to continue experimentation.

Re: Tutorial using Dynamic Components

Posted: Thu Feb 12, 2015 10:08 am
by AdamB
Have you read page 75 onward of the Getting Started docs? It lists out the commands and options that are available.

Adam

Re: Tutorial using Dynamic Components

Posted: Fri May 27, 2016 2:50 pm
by pka
Hi, reviving an old thread! I've been experimenting with Dynamic Components in my sketchup model for swing doors and sliding doors and screens. While all the components operate as they should in sketchup, about half of the swingdoors dont operate while in tourtour. In tourtool sliding doors also move on a diagonal path that is different from how they move in Sketchup. Seems to me like lightup is using a different axis than the Dynamic Component's own axis. Any tips on resolving this?

-Peter

Re: Tutorial using Dynamic Components

Posted: Fri May 27, 2016 3:57 pm
by AdamB
Hi

One feature of LightUp dynamic components, is that it interprets translation axis x,y,z (lowercase) as in the objects coordinate system, and X,Y,Z (uppercase) in the model coordinate system.

Similarly with rotation: rotx,roty,rotz rotate around the objects coordinate system, Rotx,Roty,Rotz around the model coordinate system.

Adam