aligrafix Posted January 5, 2009 Share Posted January 5, 2009 Huys, I have a scene with door and handle. The handle is separate while the door is "pivot door" from max by default. I want that, when i open the door, the handle should move with it rather than i animate it myself. For this, I want to wire the Z-rotation of handle with the "open" parameters of door. I did with wire dialog. The handle moves fine with (Dictorad) function in that but the problem is that, the handle goes on oposite side whenever i connect them. I have attached images for before and after. Please! help. Link to comment Share on other sites More sharing options...
Peter M. Gruhn Posted January 6, 2009 Share Posted January 6, 2009 Kinda guessing here... Seems to me the wired parameter would merely take the number of degrees of rotation and apply it to the other number of degrees. So.. do you have the handle's pivot in the same place as the door's pivot? OK, I'm trying it out myself. It works right EXCEPT the handle rotates MUCH faster than the door. That might be what you are seeing, Open the door 30deg and the handle rotates 3million deg and happens to come out behind. OK, here's the deal - we win, computers lose. There's an angle conversion lost in there somewhere and you are rotating the handle in radians. So divide by the number of degrees in a radian. There may be Max constants you can use to get more accurate results; I used 57.296. See attached image. There may be another way to do it with a "no, wire angles as degrees" setting in options or other thing. Not my corner of the world ;-). Link to comment Share on other sites More sharing options...
aligrafix Posted January 6, 2009 Author Share Posted January 6, 2009 Thanks. but what i have problem is that., i have controlled the rotation of the handle with (Degtorad) function which is built-in. problem is that when i connect them, the handle goes on opposite side, i mean the inital position is used to be on the (flipped horizantally) with the door. otherwise, roation is fine and no problem.if u watch my attachment "after", I have opened the door and the handle is on the other side of the door just like the door is at opposite side. Link to comment Share on other sites More sharing options...
Peter M. Gruhn Posted January 6, 2009 Share Posted January 6, 2009 > degtorad Ah, so you did. OK, I didn't quite follow exactly what you meant by "the other side." Think I do now. And try as I might, I can't duplicate it. I can make it do all sorts of wrong things but it always starts where it belongs and opens smoothly (along with or interestingly away from the door as the case may be). Sorry. I lose. Link to comment Share on other sites More sharing options...
Gus_Rayvus Posted January 6, 2009 Share Posted January 6, 2009 I think I recreated your problem. My guess is the door handles coordinate directions are off. Just create a box in the top view. Collapse it and attach the door hand to it. In the element sub-obj delete the box. Rename and re pivot and re wire. See if that works for you. Link to comment Share on other sites More sharing options...
aligrafix Posted January 6, 2009 Author Share Posted January 6, 2009 I did it. Simply, i subtracted the amount of extra angle from the current value of handle. Wiring is done same way. The handle goes on other side of the door while the door is closed.Here is the solution , I am giving solution myself haha. e.g. After wiring, the: door open=0 and handle's z-axis = 57 it means that handle is getting extra 57 degrees than door's value. thus i made it like this. (handle's z-axis) -57 = door open this brought handle at the same position where i wanted it and when i open the door, the handle moves with it. Tip for you guys. UP me. Thnx for activity. Link to comment Share on other sites More sharing options...
Gus_Rayvus Posted January 6, 2009 Share Posted January 6, 2009 By doing what I wrote above you will reset the rotation in the object (door knob) and wont need to put the - 57 into your expression. Not sure if that is easier, but it might be a little cleaner. Link to comment Share on other sites More sharing options...
aligrafix Posted January 6, 2009 Author Share Posted January 6, 2009 I ll try it now and then let u know Gus Link to comment Share on other sites More sharing options...
Gus_Rayvus Posted January 6, 2009 Share Posted January 6, 2009 I guess you could also just reset the xform on the door handle, might be quicker. Link to comment Share on other sites More sharing options...
aligrafix Posted January 6, 2009 Author Share Posted January 6, 2009 yeah bro. i forgot it Link to comment Share on other sites More sharing options...
Deg Posted August 17, 2010 Share Posted August 17, 2010 This information is very informative. I had no idea that Max had the degrees to radius conversion function. My Question: Now that I can attach a handle to a door using degtorad, I would like to attach a handle to a AEC Window but they use Percentage to Open and I am not aware of a pertodeg function. Is there any way to do the same to windows. Nick Degner Max 2010 SP1 x 64 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now