Constraint axis

TangoAlphaTangoAlpha Posts: 4,584
edited December 1969 in Carrara Discussion

I've got a hatch on the top of my roof which I want to be able to open and close. But so it doesn't rotate right through the ceiling or the guard rail, I need to set a constraint on the rotation. Problem I'm having is that I can only seem to set a constraint on the Z (blue) axis. I need to set it on the Y (green) axis.

Most controls have a little 3-arrow pointy thing that lets you set the operating axis, but this doesn't seem to have one. Any ideas?

Ta. :)

Screen_Shot_2014-09-29_at_19.24_.58_.png
663 x 612 - 156K
Screen_Shot_2014-09-29_at_19.12_.24_.png
1851 x 1055 - 676K

Comments

  • evilproducerevilproducer Posts: 9,050
    edited December 1969

    Can you use Custom and leave the constraints that you don't want to use locked?

    I put in a simple plane primitive, moved the hotpoint to the edge, and tried the axis constraint and had the same results you described. I tried Custom and had good results.

    Picture_1.png
    1246 x 606 - 199K
  • Design AcrobatDesign Acrobat Posts: 459
    edited September 2014

    Same thing as EP with the custom. Set the two openings at a 90 degree difference - (mine are at 3 o'clock and 6 o'clock) and make that the limited range for opening and closing. Zero degrees fully open and -90 degrees fully closed in the example.

    openclose_hatch.jpg
    566 x 637 - 100K
    Post edited by Design Acrobat on
  • TangoAlphaTangoAlpha Posts: 4,584
    edited December 1969

    Thanks, that did the trick :)

    A few little odds & sods left to do - latches & locks, glass for the windows and a flag for the flagpole, then it's all done bar the endless tweaking of shaders and textures. Oh and a landscape to put it in!

    folly33.jpg
    1280 x 900 - 536K
    folly35.jpg
    1280 x 900 - 813K
  • evilproducerevilproducer Posts: 9,050
    edited December 1969

    That's looking pretty sweet!

  • HeadwaxHeadwax Posts: 9,969
    edited December 1969

    Tim_A said:
    Thanks, that did the trick :)

    A few little odds & sods left to do - latches & locks, glass for the windows and a flag for the flagpole, then it's all done bar the endless tweaking of shaders and textures. Oh and a landscape to put it in!

    inside render looks great

  • tbwoqtbwoq Posts: 238
    edited October 2014

    As far as I know, the 'Axis' constraint has the only way to seperately align a rotate axis using the constraints X,Y,Z input fields. So if the object is not lined up/oriented to the world/local axis, the input fields can give a type of alignment for rotation. In the OP, you could just input Y=90 degrees etc.

    Post edited by tbwoq on
Sign In or Register to comment.