• Login
sketchucation logo sketchucation
  • Login
⚠️ Libfredo 15.4b | Minor release with bugfixes and improvements Update

[REQ] Unlock/ReLock

Scheduled Pinned Locked Moved Plugins
4 Posts 2 Posters 219 Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    JClements
    last edited by JClements 17 Sept 2011, 17:11

    I have made a model from which variations of 4 other models are based.
    Somehow, a couple of the models have geometry that has been accidentally moved.

    I need to correct this. The problem is each model has an INTRICATE, SPECIFIC SET of geometry which has been locked and that set should not be altered. Because of this, the set of geometry must first be unlocked and then relocked after being re-positioned.

    Could a script be developed that would evaluate all the geometry in a model (including nested geometry), remember the locking status of the geometry, unlock that geometry, and then be able to relock that geometry after it has been re-positioned?

    John | Illustrator | Beaverton, Oregon

    1 Reply Last reply Reply Quote 0
    • J Offline
      jolran
      last edited by 17 Sept 2011, 18:02

      Well, you have access to Group and component locks in the API. Where you can set lock, and read lock. However to "remember" each groups(or comp.) a quick guess, you could probably set an attribute for that purpose. Not 100% sure about that feature though.

      IF SO, one would probably want to be able to update the attributes if grouping get's changed or deleted. And delete the attribute in an easy fashion as well.

      Got my hands busy learning Javascript, otherwise I could test it for you.

      Good luck! Think it would be a useful plugin.

      1 Reply Last reply Reply Quote 0
      • J Offline
        JClements
        last edited by 17 Sept 2011, 18:06

        To make it less complicated, the user would have to assume that the grouping structure could not be altered.

        John | Illustrator | Beaverton, Oregon

        1 Reply Last reply Reply Quote 0
        • J Offline
          jolran
          last edited by 17 Sept 2011, 18:18

          Yeah, that would help.

          BUT, I came to think of some unlogic in my ideas. And that is if you for ex set an attribute that says the group is locked. And then you unlock the group by setting group=unlocked. How to tell the state before? There might be methods dealing with this but I can't give an answer to that unless digging more deeply.
          Someone more experienced with classes and attributes might pitch in.
          Sorry, bout that. 😳

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          1 / 1
          • First post
            3/4
            Last post
          Buy SketchPlus
          Buy SUbD
          Buy WrapR
          Buy eBook
          Buy Modelur
          Buy Vertex Tools
          Buy SketchCuisine
          Buy FormFonts

          Advertisement