Notifications
Clear all

[Closed] transform to zero problem with setinheritanceflags

i have a problem when i use setinheritanceflags.

for example y have two objects, A and B.
A is B’s parent and B has the inheritanceflags to #{1,2,3,7,8,9}, so B doesn’t rotate when A rotates.

The problem comes when y change B’s position, after moving it, when i transform B to zero to return the original B’s position it goes crazy and get another position. And i don’t know why.

if anyone has the answer, please tell me, i´m a bit desperate

thanks

7 Replies

when scripting inheritance flag changes, it should be the last thing you do after setting all transform values. if you change after you set the inheritance you get crazy shit

mark

 PEN

I never use those. I find it better to orientation constrain it to something.

you use an orientation constraint to something, but if you need to rotate the object that has the orientation constraint, how do yo do it?

 PEN

Another controller on top or the constraint. Or better yet constrain an object that is a parent of the one that you are working with. Then you can rotate the child.

I’ve tried to put another controller on top of the constraint, but then I get strange rotations when i rotate the object using this new controller.

The other way doesn’t works for me, watch my diagram in my other thread “parent follow child”
Thanks for your patience PEN.

 PEN

That strange rotation is odd the way it happens so to get around that just wire that new controler to another object and it will work as you would expect.

Sorry PEN, I don’t understand very well your answer. What do you mean with “wire that new controler to another object”?

Do you mean to create another object and use wire parameters to rotate the one with the orientation constraint???

thanks again PEN