Tutorial using Dynamic Components

Features you'd like to see in future versions, gripes, ideas..
Post Reply
mallen
Posts: 47
Joined: Thu Apr 07, 2011 4:47 pm

Tutorial using Dynamic Components

Post by mallen » Tue Feb 21, 2012 3:30 pm

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

User avatar
AdamB
Site Admin
Posts: 2294
Joined: Wed Apr 16, 2008 10:11 am
Location: Brighton, UK
Contact:

Re: Tutorial using Dynamic Components

Post by AdamB » Tue Feb 28, 2012 8:58 pm

Coming soon!
Developer of LightUp http://www.light-up.co.uk

mallen
Posts: 47
Joined: Thu Apr 07, 2011 4:47 pm

Re: Tutorial using Dynamic Components

Post by mallen » Tue May 15, 2012 2:55 pm

Any progress on the Dynamic Components tutorial?

Regards,
mallen

User avatar
AdamB
Site Admin
Posts: 2294
Joined: Wed Apr 16, 2008 10:11 am
Location: Brighton, UK
Contact:

Re: Tutorial using Dynamic Components

Post by AdamB » Tue May 15, 2012 3:40 pm

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
Developer of LightUp http://www.light-up.co.uk

mallen
Posts: 47
Joined: Thu Apr 07, 2011 4:47 pm

Re: Tutorial using Dynamic Components

Post by mallen » Wed May 16, 2012 1:43 pm

Thanks for the information. Looks like I need SketchUp Pro for dynamic components.

Regards,
mallen

slugore
Posts: 20
Joined: Tue May 20, 2014 10:15 pm
Location: Toronto, Ontario, Canada

Re: Tutorial using Dynamic Components

Post by slugore » Wed Feb 04, 2015 12:28 am

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.
Win10 64bit|Intel i7 930@2.80ghz, 12GB ram | Radeon HD5880 | SketchUp Pro 2018 64bit | LightUp 5.6

User avatar
AdamB
Site Admin
Posts: 2294
Joined: Wed Apr 16, 2008 10:11 am
Location: Brighton, UK
Contact:

Re: Tutorial using Dynamic Components

Post by AdamB » Thu Feb 12, 2015 10:08 am

Have you read page 75 onward of the Getting Started docs? It lists out the commands and options that are available.

Adam
Developer of LightUp http://www.light-up.co.uk

pka
Posts: 1
Joined: Thu Apr 28, 2016 4:54 pm

Re: Tutorial using Dynamic Components

Post by pka » Fri May 27, 2016 2:50 pm

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

User avatar
AdamB
Site Admin
Posts: 2294
Joined: Wed Apr 16, 2008 10:11 am
Location: Brighton, UK
Contact:

Re: Tutorial using Dynamic Components

Post by AdamB » Fri May 27, 2016 3:57 pm

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
Developer of LightUp http://www.light-up.co.uk

Post Reply