Face to Face Object Snapping
Re: Face to Face Object Snapping
Well for me before I added this command to your script (see capture), the script was changing from Face Selection to Point Selection. So when I was wanting to use your tool more then once, I had to switch to Face Selection again. I understand about the pivotParent object only showing during installation, I was just suggesting that you set it to Invisible. I'll leave up to you if you want to make the changes or not.
- clintonman
- Captain
- Posts: 5428
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: Face to Face Object Snapping
I see. It would be useful for the "Steinie" workflow. It won't take a lot of time to make the changes and I don't see any negative impact, so consider it done(soon). If I had not seen the Steine way I wouldn't bother because the script changes to face select when it starts.trueBlue wrote:Well for me before I added this command to your script (see capture), the script was changing from Face Selection to Point Selection. So when I was wanting to use your tool more then once, I had to switch to Face Selection again. I understand about the pivotParent object only showing during installation, I was just suggesting that you set it to Invisible. I'll leave up to you if you want to make the changes or not.
Edit: The requested changes are in place now. Thanks for the feedback.
Re: Face to Face Object Snapping
Thanks Clinton. I added a Copy Source to your Face to Face Object Snapping script.
LMB = Snap Face to Face
RMB = Copy source On/Off
Video included showing it's use.
LMB = Snap Face to Face
RMB = Copy source On/Off
Video included showing it's use.
- Attachments
-
- Face to Face Object snapping.zip
- (386.42 KiB) Downloaded 208 times
- clintonman
- Captain
- Posts: 5428
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: Face to Face Object Snapping
Good idea. What do you think of this change. LMB = move and RMB = copy. That way you don't have to keep track of what state the script is in.trueBlue wrote:Thanks Clinton. I added a Copy Source to your Face to Face Object Snapping script.
LMB = Snap Face to Face
RMB = Copy source On/Off
Video included showing it's use.
One more thing, you might want to change the name of the button or make the script the same name as the original. That way it installs a new button or replaces the old script and button. As it is now it replaces the button and adds a new script.
- Attachments
-
- Face to Face Snapping 2a.zip
- (32.21 KiB) Downloaded 219 times
Re: Face to Face Object Snapping
Better idea with the copy flag!
I did not mess with your install script and I never really noticed the duplication because I always answered Yes to replace the button and script. However I do notice that if they exist and you answer No, that is when the duplication happens. Also if you answer No to replace the button (1st Question) you do not have the opportunity to replace the script (2nd Question).
Edit: Here is what I came up with, with regards to the install script.
I did not mess with your install script and I never really noticed the duplication because I always answered Yes to replace the button and script. However I do notice that if they exist and you answer No, that is when the duplication happens. Also if you answer No to replace the button (1st Question) you do not have the opportunity to replace the script (2nd Question).
Edit: Here is what I came up with, with regards to the install script.
- Attachments
-
- tS761 Face to Face Snapping.zip
- (38.49 KiB) Downloaded 218 times
- clintonman
- Captain
- Posts: 5428
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: Face to Face Object Snapping
That isn't happening for me. I don't get any duplicates if the names match. The No on the first question = abort is by design since I can't think of any cases where you would want to update the button but not the script and it serves as a safety in case somehow 2 buttons with the same name but different functions won't override each other.trueBlue wrote:Better idea with the copy flag!
I did not mess with your install script and I never really noticed the duplication because I always answered Yes to replace the button and script. However I do notice that if they exist and you answer No, that is when the duplication happens. Also if you answer No to replace the button (1st Question) you do not have the opportunity to replace the script (2nd Question).
Edit: Here is what I came up with, with regards to the install script.
Edit: That explanation doesn't make sense. What I mean to say(I think) is that the the script update requires the button update since it might depend on it, but it's possible to install a button that does not use an external script. So you get 2 questions instead of one. It all boils down to giving the option to not overwrite any existing elements.
Here is the updated script(I'll add it to the first post). It doesn't have your updated installer since I didn't know about it till now and I can't reproduce the problem of duplicates anyway. One last enhancement is that the script maintains the apparent selection so it's easier to copy/move several times without the need to update the selection every time.
Re: Face to Face Object Snapping
Way cool it keeps getting better and better. Nice touch Clinton!
It was not working for me as intended until I reversed the order of the selection as shown:
It was not working for me as intended until I reversed the order of the selection as shown:
- Attachments
-
- Capture.PNG (2.75 KiB) Viewed 4732 times
- clintonman
- Captain
- Posts: 5428
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: Face to Face Object Snapping
I suspect it has to do with the way it is run. I think if you run it after entering PE mode it reverses the behavior. If both objects are not in PE mode it works as expected.trueBlue wrote:Way cool it keeps getting better and better. Nice touch Clinton!
It was not working for me as intended until I reversed the order of the selection as shown:
Re: Face to Face Object Snapping
Error
Select your Face Snap button.
RMB in View to exit PE mode.
Suggestion:
Save and Restore the current PE selection mode.
Select 2 Objects in PE mode.
Select your Face Snap button.
RMB in View to exit PE mode.
Suggestion:
Save and Restore the current PE selection mode.
Code: Select all
Node.Value('/Preferences/Mesh Editor Settings','PE selection mode') = Node.Value(System.ThisOwner() + "/selectFaceMode", "PEselectionMode")
- clintonman
- Captain
- Posts: 5428
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: Face to Face Object Snapping
New version:
Fixed crash when exit PE mode before tool is complete
restores previous PE selection mode
if start in PE mode stays in PE mode
automatic installer
improved button highlighting and gui id
Fixed crash when exit PE mode before tool is complete
restores previous PE selection mode
if start in PE mode stays in PE mode
automatic installer
improved button highlighting and gui id