Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Angle Control to Control slider

Community Beginner ,
Mar 29, 2018 Mar 29, 2018

Hey everyone,

I'm trying to Link a Angle Control to a Control Slider. Since an Angle Control has a Degrees value and a Slider controI a numeric value cant seem to link it to a Control Slider.  I want the slider to define the value of the Angle Control and if possible I would love to make it a value between 0 and 100. For example  Slider value is 50 = Angle Control value is 180.

I hope this makes sense to somebody.

Kind Regards,

Robin

3.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Mar 29, 2018 Mar 29, 2018

I gave you the math for the text display here Can't figure out how to fix this. Need help. You can apply the same math to drive a slider control. It makes more sense to me to control rotation with an Angle Control than a slider but if you really want to use a slider then use Jose's expression. It will completely stop working if you go below zero or above 100 so you cannot do multiple rotations.

If you want to do multiple rotations or keep it simple then just multiply the slider value by 3.6. That

...
Translate
Community Expert ,
Mar 29, 2018 Mar 29, 2018

You have an Expression control effect specifically designed for angles. You can find it in Effects > Expression Controls > Angle Control.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 29, 2018 Mar 29, 2018

Thank you for your time Jose,

But i think you are missing my point. I have a Angle control on a layer and I want to adjust it's value with a slider on a different layer. Besides that I also would like to make it so that the slider translates a 0-100 numeric value to a 360 degrees value. For example: my Slider is set at 50(50%) and that makes the value of the Angle Control 180°.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 29, 2018 Mar 29, 2018

Then what you need is a range mapper. You can accomplish this with one of the interpolation expressions:

rotation = effect("Slider Control")("Slider");

linear(rotation, 0, 100, 0, 360)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 29, 2018 Mar 29, 2018
LATEST

I gave you the math for the text display here Can't figure out how to fix this. Need help. You can apply the same math to drive a slider control. It makes more sense to me to control rotation with an Angle Control than a slider but if you really want to use a slider then use Jose's expression. It will completely stop working if you go below zero or above 100 so you cannot do multiple rotations.

If you want to do multiple rotations or keep it simple then just multiply the slider value by 3.6. That's simple math. 100 * 3.6 = 360. There is nothing to it.

effect("Slider Control")("Slider") * 3.6

I wish I knew what you were trying to accomplish. I think you are way over thinking the project. I had a student not too long ago that came up with a 50+ line expression to control some movement that could have been done with 2 keyframes and 10 seconds with the graph editor. Using the graph editor may not have produced a mathematical perfect curve but when we duplicated the move and watched the movie frame by frame the difference in position was about 2 or 3 pixels in four or five of the 30 frames for the move. The simple technique took less than a minute, the student spent about 10 hours on an expression that will probably never be used again.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines