DV Transform Bone V 3.7

Moho allows users to write new tools and plugins. Discuss scripting ideas and problems here.

Moderators: Víctor Paredes, Belgarath, slowtiger

User avatar
davoodice2
Posts: 381
Joined: Tue Jun 15, 2021 1:14 pm

DV Transform Bone V 3.7

Post by davoodice2 »

hello
I am going to improve standard bone transform tool.
until now :
v 1.0
A: add bones to selection with hold shift (No need to change tool anymore)
B: Deselect bones with click on empty area (No need to change tool or set shortcut anymore)
C: directly select another bone if multiple bones are select. (No need to deselect anymore)
D: Pin bone short keys are same as normal bones. (alt move, normal rotate, ctrl scale)

v 2.0
--Add Complete Bone Constraints menu
NOTE: Now if you are selected multiple bone , changing any parameter just change that parameter. And other parameters remain The same thing they were.

--see name of bone currently is selected
--rename bone
--lock bone
--change color of bone
--show label
--shy bone
--close button just close window :D

v 2.1
some bugs are fixed
v 2.4
------- force use keys to scale and Move ( bones don't moved or scaled accidently)
-------some UI adjustment(make compact)
-------add tween machine (need my tween machine script)
v2.5
-------It no longer adds any keys when selecting bones
v3.0b
-- change selected and object color with alt click on reset position and reset scale
-- add rectangular selection
-- highlight picked Bone in different style
-- Hold shift And Click >> toggle select and Unselect Bone
-- Hold shift And Drag >> reverse selection by drawing a rectangle
-- Hold CTRL And Drag >> Subtract from selection by drawing a rectangle
-- Hold CTRL+SHIFT And Click >> Add to selection
-- Hold CTRL+SHIFT And Drag >> Add To selection by drawing a rectangle
-- fix show path functionality
v3.1b
-- fix Bug for showing Pin Bones

--3.2b
-- Better Hover Bone
--3.3b
-- fix rectangle selection bug when bone is selected
--3.4b
--Improve Preselection Bone Highlight
--Ability to see those bones have keys in selected keys
--3.5b
--Improve Preselection Bone Highlight
--Set Target Bone With Hold Alt + CRTL and click on bone
--3.6b


--3.61b

--3.7
-- modify colors for better view
-- change scale bone formula for better scaling
-- Tool is Always Active (even not bone layer) (disabled due to bugs)
-- in not bone layers act like Select bone tools (even toolbar) (Must install DV_bone_select)(disabled due to bugs)


download v 1.0 🔗 https://www.mediafire.com/file/eo9yk1ae ... e.zip/file

download v 2.2 🔗 https://www.mediafire.com/file/xekjqs30 ... 2.zip/file

download v 2.4 🔗 https://www.mediafire.com/file/ow1oiu5q ... 4.zip/file

download v 2.5 🔗 https://www.mediafire.com/file/ozh9qzow ... 5.zip/file

download v 3.5b 🔗 https://www.mediafire.com/file/3ucc14t2 ... 5.zip/file

download v 3.7 🔗 disabled due to bugs

download v 3.6 🔗 https://www.mediafire.com/file/f5hixwhi ... 6.rar/file

video Demonstration Here:

https://lostmarble.com/forum/viewtopic. ... 27#p201027

Image
Last edited by davoodice2 on Thu Mar 17, 2022 11:43 am, edited 27 times in total.
خیام اگر ز باده مستی خوش باش
با ماهرخی اگر نشستی خوش باش
چون عاقبت کار جهان نیستی است
انگار که نیستی چو هستی خوش باش
Daxel
Posts: 1013
Joined: Wed Mar 27, 2019 8:34 pm

Re: Universal Transform Bone V 1.0

Post by Daxel »

Congrats on your first Moho script! One of these days I have to start learning how to do it.
And thanks for sharing.
User avatar
synthsin75
Posts: 10011
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Universal Transform Bone V 1.0

Post by synthsin75 »

davoodice2 wrote: Sun Aug 29, 2021 12:51 am B: Deselect bones with click on empty area (No need to change tool or set shortcut anymore)
You can also do this with ESC.
User avatar
davoodice2
Posts: 381
Joined: Tue Jun 15, 2021 1:14 pm

Re: Universal Transform Bone V 1.0

Post by davoodice2 »

Congrats on your first Moho script! One of these days I have to start learning how to do it.
And thanks for sharing.
thank you.
You can also do this with ESC.
yes sure. but its more comfortable for me.
خیام اگر ز باده مستی خوش باش
با ماهرخی اگر نشستی خوش باش
چون عاقبت کار جهان نیستی است
انگار که نیستی چو هستی خوش باش
User avatar
synthsin75
Posts: 10011
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Universal Transform Bone V 1.0

Post by synthsin75 »

davoodice2 wrote: Sun Aug 29, 2021 3:32 pm yes sure. but its more comfortable for me.
That's the joy of making scripts just the way you want them.
User avatar
davoodice2
Posts: 381
Joined: Tue Jun 15, 2021 1:14 pm

Re: Universal Transform Bone V 1.0

Post by davoodice2 »

synthsin75 wrote: Sun Aug 29, 2021 5:25 pm
davoodice2 wrote: Sun Aug 29, 2021 3:32 pm yes sure. but its more comfortable for me.
That's the joy of making scripts just the way you want them.
exactly
خیام اگر ز باده مستی خوش باش
با ماهرخی اگر نشستی خوش باش
چون عاقبت کار جهان نیستی است
انگار که نیستی چو هستی خوش باش
chucky
Posts: 4650
Joined: Sun Jan 28, 2007 4:24 am

Re: DV Transform Bone V 2.0 [Big Improvement ]

Post by chucky »

Hey this is pretty cool !
Being able to see the name of the bone with the transform tool is something I've always wanted.
Good onya !
Oh though the 2.2 link seems to be broken.
User avatar
davoodice2
Posts: 381
Joined: Tue Jun 15, 2021 1:14 pm

Re: DV Transform Bone V 2.0 [Big Improvement ]

Post by davoodice2 »

chucky wrote: Mon Oct 04, 2021 7:40 am Hey this is pretty cool !
Being able to see the name of the bone with the transform tool is something I've always wanted.
Good onya !
Oh though the 2.2 link seems to be broken.
sorry
link fixed.
خیام اگر ز باده مستی خوش باش
با ماهرخی اگر نشستی خوش باش
چون عاقبت کار جهان نیستی است
انگار که نیستی چو هستی خوش باش
chucky
Posts: 4650
Joined: Sun Jan 28, 2007 4:24 am

Re: DV Transform Bone V 2.0 [Big Improvement ]

Post by chucky »

Thanks, so much and hey, no apology necessary, you're very generous to share this with the community.
Daxel
Posts: 1013
Joined: Wed Mar 27, 2019 8:34 pm

Re: DV Transform Bone V 3.3 b (13/11/2021)

Post by Daxel »

I'm testing it and I really like it so far, I think this is the right direction.

Shift to constrain is not working.

Edit: I had an idea!
You have this other script to quickly go to the parent bone layer, and then you have this fantastic 3 in one bone tool. And I think that it would be awesome to fusion both. The same transform bone tool would have to be selectable from any layer, not only bone layers, and it would check if the selected layer is a bone layer. If it isn't, it would activate the same code you have on the other script selecting the parent bone layer and picking your transform bone tool. So each time you use the shortcut to pick your transform bone tool you will automatically go to the bone layer. Edited: you will automatically go to the bone layer (I wrote bone tool).

One tool to rule them all, One tool to find them,
One tool to bring them all, and in the darkness bind them
Last edited by Daxel on Tue Nov 16, 2021 11:18 am, edited 2 times in total.
User avatar
davoodice2
Posts: 381
Joined: Tue Jun 15, 2021 1:14 pm

Re: DV Transform Bone V 3.3 b (13/11/2021)

Post by davoodice2 »

Daxel wrote: Tue Nov 16, 2021 12:40 am I'm testing it and I really like it so far, I think this is the right direction.

Shift to constrain is not working.

Edit: I had an idea!
You have this other script to quickly go to the parent bone layer, and then you have this fantastic 3 in one bone tool. And I think that it would be awesome to fusion both. The same transform bone tool would have to be selectable from any layer, not only bone layers, and it would check if the selected layer is a bone layer. If it isn't, it would activate the same code you have on the other script selecting the parent bone layer and picking your transform bone tool. So each time you use the shortcut to pick your transform bone tool you will automatically go to the bone tool.

One tool to rule them all, One tool to find them,
One tool to bring them all, and in the darkness bind them
Hi daxel.
Constrain activated by ctrl + shift now.
And its greate idea that you say about parent layer.
Is this what you say:
When we hit shortkey of transform bone tool ,if it is not in bone layer,automatically go to nearest parent bone layer?
خیام اگر ز باده مستی خوش باش
با ماهرخی اگر نشستی خوش باش
چون عاقبت کار جهان نیستی است
انگار که نیستی چو هستی خوش باش
Daxel
Posts: 1013
Joined: Wed Mar 27, 2019 8:34 pm

Re: DV Transform Bone V 3.3 b (13/11/2021)

Post by Daxel »

davoodice2 wrote: Tue Nov 16, 2021 8:38 am When we hit shortkey of transform bone tool ,if it is not in bone layer,automatically go to nearest parent bone layer?
Exactly! Because if you want to use the transform bone tool, you want to be in a bone layer that's for sure. And if you already are in a bone layer, then stay there.

I see I wrote "bone tool" instead of "bone layer" by accident on my previous post at the end of my explanation, sorry for the confusion.
User avatar
davoodice2
Posts: 381
Joined: Tue Jun 15, 2021 1:14 pm

Re: DV Transform Bone V 3.7

Post by davoodice2 »

3.7 released
خیام اگر ز باده مستی خوش باش
با ماهرخی اگر نشستی خوش باش
چون عاقبت کار جهان نیستی است
انگار که نیستی چو هستی خوش باش
User avatar
davoodice2
Posts: 381
Joined: Tue Jun 15, 2021 1:14 pm

Re: DV Transform Bone V 3.7

Post by davoodice2 »

masters:
what do i do if I want the script works with referenced bones also?
خیام اگر ز باده مستی خوش باش
با ماهرخی اگر نشستی خوش باش
چون عاقبت کار جهان نیستی است
انگار که نیستی چو هستی خوش باش
User avatar
KuzKuz
Posts: 504
Joined: Mon Aug 19, 2013 5:12 pm
Location: Ukraine

Re: DV Transform Bone V 3.7

Post by KuzKuz »

You need to find a reference and use refLayer:MarkReferenceOutdated() https://mohoscripting.com/methods/1115
Post Reply