Dynamic components - help
-
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
-
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*stepsexamples attached
-
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
-
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...
-
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. -
By the way, if anyone want to mess with it, its in the 3D warehouse. heres the link
https://3dwarehouse.sketchup.com/model.html?id=ud374f307-8802-4ac4-9be6-c7f1bdebf68e
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. -
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.html?id=ud374f307-8802-4ac4-9be6-c7f1bdebf68e
Thanks again
Advertisement