Lock/Unlock Node pose quickchange?
Hi,
is there a way to make a shrotcut for lock/unlock Node pose?
That is something I use really much, so I don't have to switch the panels, like I can't select that when I am in the surface tab, I have to be in the parameters or pose tab, I can not do that for a Camera even in the camera tab.
In F3:
I can only add hotkeys to the left side (1), but the menue entrys are on the right side (2), on the left side is under pose no lock/unlock.
I have already a script (thanks richard <3 for sharing the info about the script!; did try to find the thread but cant find it in my disscussions maybe someone other made it) to toggle nodes visiblity with V, so can I rewrite that script maybe to do the same with locking/unlocking node pose?
Node visible toggle:
Should it not be easy to change just this:
oNode = aNodes[i]; // Toggle visibility of the node oNode.setVisible( !oNode.isVisible() ); }
to something like lock/unlock? I sadly doesnt know the daz3d scripts and what they wanna get as input.
Edit:
I found out, that I can drag them from the left to the right side, now its in my toolbar, well... is it now possible to make it into 1 button? Also as icon instead of thise long text?
Comments
I don't see a simple setLock/isLocked to match the visibility ones. Do you want to lock every proeprty or just the transforms?
uhm... just that what the daz studio does in the first image. that a char/finger/camera can no longer rotate or translate. Stay in position or not.
Well, this will do it - but note that the lock commands in the menu are locking/unlocking explicitly rather than toggling so you may find it doesn't do what you want. You can easily make two copies of the script replace the !oTransformProp.isLocked() bits in the toggling lines with true (lock) or false (unlock) to create a pair of scripts that unlock or lock. You might also want to exclude invisible properties, either from this version or from the lock/unlock versions, which could be done by making the
if ( oTransformProp ) {
lines
if ( oTransformProp && !oTransformProp.isHidden() ) {
(that is, do the toggling only if we have the control property and is it is not hidden)
Thanks for the script, I will take tomorrow a look on it (was a long day and I am tired... 11pm here now).
Will answer you tomorrow.
Hmmm... Excuse me for butting in, but I was going to make a Feature Request on a related topic, except I haven't had time to thoroughly check it doesn't already exist.
All I want to do is lock any object or node in the sense of it not being able to deselect when I accidentally miss the arrows on the Move Tool gizmo. I work with a lot of small objects, and this business of continually reselecting things is becoming a major pain. Even at full frame, it's so easy to miss the yellow arrow and hit the viewport instead.
If it doesn't exist, I'll request it, but I wanted to check. Sorry if I'm hijacking the thread!
Yeah I know that damn problem xD... did just locked the floor, because I wanted to move the feet char and clicked the floor -_-
but... locking the full scene hmmm.
I don't think it's possible to lock the selection, though i certainly know what you mean about accidental deselection.
Thanks folks. Since it's not already an option, I'll put in a Feature Request for it.
Just readed that, so... when I understand you with my bad good English skills correct: I have at the end still 2 Scripts?
So simply just the same like this?
Maybe, what about, HOW to make buttons for this?
Like this:
How can I make the Lock/unlock into buttons instead of the long text? Just a Lock open/close icon.
Yes, two scripts - one for locking, one for unlocking.
Once you have the scripts saved, find them in the Content Library pane, right-click, Create Custom Action, and pick the menu you want to add them to. If you create icons you can assign them by going to Window>Workspace>Customise, finding the scripts in the Custom Actions list on the left, and right-clicking>Change Icon. You can put the scripts on a Tool bar by dragging from the left column of Customise to the place you want in the Tool bars tab on the right.
Thanks Richard, I solved it without those scrpting, but I used your guide for icons ;)
To see the name/function of that thing you can enable it:
but I think I will remember for what the icons are :)
I wish I could put it on my sidemousebuttons, but daz3d does not accept the sidebuttons for hotkeys :(
Icons are from here:
https://www.pngkey.com/detail/u2q8a9y3w7e6r5r5_locks-lock-unlock-icon-png/
resized to 35x35px and colored white.
In case that someone want them too, see attachment.