Constraints - createAimConstraint, createRotationConstraint, createTranslation..

Constraints - createAimConstraint, createRotationConstraint, createTranslation..

Christian_Garimberti
Advisor Advisor
717 Views
4 Replies
Message 1 of 5

Constraints - createAimConstraint, createRotationConstraint, createTranslation..

Christian_Garimberti
Advisor
Advisor

I know that constraints are something experimental, but with constraints i could do very accurate animations and with less difficulty.

I know that actually there is only the creation of the constraints and not the removal or the disabling.

But...

There is some workaround to remove or disable constraints?

 

Thank you

Chris

Christian Garimberti
Technical Manager and Visualization Enthusiast
Qs Informatica S.r.l. | Qs Infor S.r.l. | My Website
Facebook | Instagram | Youtube | LinkedIn

EESignature

0 Likes
Accepted solutions (1)
718 Views
4 Replies
Replies (4)
Message 2 of 5

marcus_fritzen
Autodesk
Autodesk

Hi Chris,

 

we are aware of it and want to provide functionality for deleting constraints soon, but currently it's not possible to remove a constraint created via Python.

 

Cheers,

Marcus



Marcus Fritzen
Principal Engineer
0 Likes
Message 3 of 5

Christian_Garimberti
Advisor
Advisor

Thank you for the reply.

I'll wait for the new functionality!

Now i found this to disable constraints, but i don't know if it could create some issues...

(example with createRotationConstraint)

  1. createRotationConstraint(["part1"], "part2", True)
    1. constraint between part1 and part2
  2. createRotationConstraint(["part3"], "part2", True)
    1. fake constraint between part3 and part2
  3. delete part3

The second constraint seems to replace the first

The deletion of part 3 seems to remove the constraint on part 2...

In my scene it works, but maybe this create some issues?

 

Thank you

Chris

 

Christian Garimberti
Technical Manager and Visualization Enthusiast
Qs Informatica S.r.l. | Qs Infor S.r.l. | My Website
Facebook | Instagram | Youtube | LinkedIn

EESignature

0 Likes
Message 4 of 5

marcus_fritzen
Autodesk
Autodesk
Accepted solution

I guess I have to disappoint you. It's pure coincidence that it works. I believe that the second rotation constraint is always overriding the first one. You may have deleted the node from the scene graph, but it still exists in the constraint.

 

Cheers,

Marcus



Marcus Fritzen
Principal Engineer
0 Likes
Message 5 of 5

Christian_Garimberti
Advisor
Advisor

I assumed it was as you say...

i've done this only in a test scene, to try the functionality.

 

There is no Autodesk beta project for  Vred?

I'm active on Inventor, Autocad, 3Dsmax and other beta project.

if there is the Vred Beta, i would be happy to participate

 

thank you

Chris

Christian Garimberti
Technical Manager and Visualization Enthusiast
Qs Informatica S.r.l. | Qs Infor S.r.l. | My Website
Facebook | Instagram | Youtube | LinkedIn

EESignature

0 Likes