Dynamic components - help

Dynamic components - help

Postby Kevinengelbrecht » Tue Apr 28, 2015 1:34 pm

New to DC and would like to do compound animation in one "on click".Attached pics show what i want to do. On one click, lower the arm but keep the BJoint and monitor on O degrees on the Y axis. Right now the BJoint and monitor are separate components. I can group them into one component and rotate -25 degrees, but it takes 2 clicks.
Any help would BE APPRECIATED.Thanks
0

Kevinengelbrecht 
 

Re: Dynamic components - help

Postby Kevinengelbrecht » Wed Apr 29, 2015 2:55 am

By the way, if anyone want to mess with it, its in the 3D warehouse. heres the link

https://3dwarehouse.sketchup.com/model. ... f1bdebf68e


I have searched other help forums and found that there is an IF(animate_me)...
command in there but i just cant get it to work.
0
Last edited by Kevinengelbrecht on Thu Apr 30, 2015 12:55 pm, edited 1 time in total.

Kevinengelbrecht 
 

Re: Dynamic components - help

Postby pcmoor » Wed Apr 29, 2015 10:12 am

You can use ; semicolon to place multiple events on one onclick line

onclick may contain animate("RotZ",0,-90) ; set("a". 4,5,8,6) ; animateslow("X" 20,200) and so on. onclick must be triggered at the same nested level, otherwise its parent or container will always precede and stop the lower onclicks

you can get more than one attribute to be effected by a single onclick event by using a common variable

steps...........0
onclick .........aminateslow("steps", 0,100)
rotz...........=if(steps>50, 90,0)
X..............=steps/2
Y............=steps*steps

examples attached
1

pcmoor 
 

Re: Dynamic components - help

Postby Kevinengelbrecht » Wed Apr 29, 2015 10:50 am

Thanks pcmoor, i will download the samples and try at work later today. BTW i posted a link to the 3Dwarehouse where my model is, but it didnt show up. Ill try it again,

https://3dwarehouse.sketchup.com/model. ... f1bdebf68e

Thanks again
0
Last edited by Kevinengelbrecht on Thu Apr 30, 2015 12:56 pm, edited 1 time in total.

Kevinengelbrecht 
 

Re: Dynamic components - help

Postby pcmoor » Thu Apr 30, 2015 11:15 am

Hi

combined movement with click on arm. however its likely you would want to rotate screen and whole arm, plus other ideas. As the trigger points need to be on one level whereas movement operations can involve combining components for ease of operation it is suggested you create a control pad.

see attached files
0

pcmoor 
 

Re: Dynamic components - help

Postby Kevinengelbrecht » Thu Apr 30, 2015 11:34 am

pc, thanks, your explanation with the semicolon worked. Added the following

;animate("bjointmon!RotY"0,-15,-25)

I had done this before but didnt have the ! after the component. Plus added an extra step. Uploaded the new model to the warehouse.
Thanks again !!! <didnt forget the exclamation point)

Now, need to swivel/rotate just the monitor. Will work on that another day...
0

Kevinengelbrecht 
 

Re: Dynamic components - help

Postby Kevinengelbrecht » Thu Apr 30, 2015 12:52 pm

Nice set up with the remote pad, you're a step ahead of me wanting to rotate the monitor.
I only get an hour or so a day to work on this, so its slow going. Will take your idea of a control pad and fine tune it. Forgot about rotating the whole arm around the room, I was using the SU rotate tool to do that, but it even better if i can do in DC.
0

Kevinengelbrecht 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Dynamic Components

Who is online

Users browsing this forum: No registered users and 1 guest

Visit our sponsors: