Help: Dynamic
-
Hard to answer without the model... Post the SU file please.
-
@daredevil said:
Hard to answer without the model... Post the SU file please.
http://www.mediafire.com/?rc5uzk9912ed2m1
Select all and show all to see the inside axis (origin)
PS: I forgot to write the entere code: ANIMATESLOW(RotX,0,90,180).
I would like to turn the cube in its 3 combinations of colours -
Wow !! 27Mb !! large file for a "simple" cube
Edit : OK, you dont purge the componants and materials lib. Now is only 800kb
So, DC rotation in 3D space is hard to solve. For the DC, the rotation axes are parent componant axes. so you have to align "Skewb" axes to the "Dinamico" axes. In that case you can turn around the X axe without problem.
The other problem is the way that DC interpret the rotation value. If you say "turn to 240°" the Rot value is not 240 but -120... And if you say "turn to -120°" it make an error creating a new value called "-120"
My way to solve it is to use a value, animate this value with only positive numbers and link the Rot to this value :
[pre:35tf4lrj]RotX -> = Angle
onClick -> animateslow(Angle,-0,120,240)
Angle -> 0[/pre:35tf4lrj]
Hope that helps you...
Skewb_DD.skp -
First, Thanks for your time.
I did a little test but completely fail
dimensions still big (5Mb)(I discovered how to reduce the dimension )My object don't turn (I'm feeling stupid)
Ah! how can I upload the US file in forum without my host site?
Ty againhttp://www.mediafire.com/?1qd0vo5psf4u69s
(P.s sorry for my english)
-
@don-quixote said:
I did a little test but completely fail
My object don't turn
You forgot to associate Angolo and RotX with
RotX -> = Angolo
But in this case, the Test object will be oriented on the X world axe to turn around it.
You must create a componant "around" the Test. Manualy turn this object with the X axe on the wanted orientation. Then, the Test object will turn around this axe.@unknownuser said:
dimensions still big (5Mb) (I discovered how to reduce the dimension )
In the componants windows, click on the arrow and select "Purge unused elements". After, do th same in the materials windows.@unknownuser said:
Ah! how can I upload the US file in forum without my host site?
Ty again
Go in the full editor (under the Quick Reply box), then under the text box there is a "Upload attachment" to join files.@unknownuser said:
(P.s sorry for my english)
Sorry for my english too
You know how called a man who know three languages ? A trilingual.
You know how called a man who know two languages ? A bilingual.
You know how called a man who know only one language ? A french man!
... that's right, I'm french... -
I create a solid (the arrow), then I changed the axes, and I wrote in the DC:
RotX - Angolo
On click - Animateslow(Angolo, 0,90,180,270)
Angolo - 0After this my arrow rotate on the floor
At this moment is it all correct?
-
-
ooooooooooh, I only wrote RotX Angolo
ahahaha -
.... what did I do wrong?
-
I do not think you have done nothing wrong - it appears, unfortunately that this is how Dynamic Components currently behave.
-
OOOh... so what is my next step to rotate my skuwb (I'm trying to repet step by step what DareDevil did)
-
You don't do wrong, you just miss a step
The Components don't turn around own axes but around worldaxes. And the worldis the local world were they are (also called Parent).
If you put your arrow like you do, the world is the global Sketchup scene. If you ask to turn around the X ax, the arrow will turn around the red ax of the scene, and as you don't tell anything for Y and Z rotation, SU must choose a value to solve 3D rotation and choose 0. So your arrow align to the red ax (RotY=0 and RotZ=0) and turn around it (RotX=something).To avoid it, you must create la local world around your arrow :
1- Draw something around your arrow (here an empty cube centered on the axes)
2- Select all (cube and arrow) and create a component (here called LocalWorld). Now you have a Arrowcomponent in a LocalWorldcomponent.
3- Change the axes of the LocalWorldto align to the Arrowaxes.
4- Now you can turn the LocalWorldas you want (and so the inside Arrowto).
5- When you ask Arrowto turn around X ax, it will turn around the LocalWorldX ax and so, the Arrow seem to turn around its own X ax.
Hope is better with some picts -
Yeeeeeees my arrow can turn now thaaanks
Just last question: is it normal my box inside the arrow don't turn with it?
-
-
@don-quixote said:
This project it's dedicated to DareDevil and Jim; thank you guys for helped me
Nice !
I've got one when I was younger, in the 80's -
Administrators can close this topic
Advertisement