Create limit constraints after import

Issue #680 wontfix
ViSlArT created an issue

When you import a character, it will only create limit constraints and loc/rot locks on the bones based on your current settings in Global Settings. If you decide later you want to toggle locks, there are buttons in the Posing panel.

These are always shown regardless to your Global Settings, however the Limits only work if they were on when enabled, and if the constraints weren’t removed afterwards.

Based on the operator class and id name, I assumed 846a7ea (Tool which imposes locks and limits) would fix this but I’m just going to assume that what it “does” is the equivalent of double-toggling the prior ops, to make sure the locks/limits are set to the buttons (cancelling user changes). edit: (I guessed that by looking at the code. I see what it actually does is re-constrain to those limits, after they were transformed while un-restrained)

What I’m asking is for a button to add location/rotation limit constraints to bones, after importing the character/rig.

Comments (7)

  1. Thomas Larsson repo owner

    No, it is not possible to impose limits later if it wasn’t done at import time. The information about the limits are only stored in the limit constraints, and if those are not generated that information is lost.

    A double toggle mutes and unmutes the limit constraints. The new button changes the actual rotation and location values to be within the limits.

  2. ViSlArT reporter

    If you don’t want to add it, that’s fine but if you’re willing, you could autostore the information on the bones like you already do with DazLocLocks and DazRotLocks.

  3. Thomas Larsson repo owner

    OK, that could be done, but it would add a rather big collection property to each posebone, to little avail. Instead you could just import the character with limits and disable them afterwards.

  4. Xin

    I’m not a fan of storing a lot of info on properties either, since they slow down viewport playback. In general, I think addons should strive to be as non-intrusive as possible.

  5. Thomas Larsson repo owner

    Note the difference between locks and limits. If you disable locks they are gone, so you have to store them somewhere to be able to restore them later. If you disable limits the constraints are just muted, but there are still there so they can be restored.

  6. Log in to comment