home |  downloads |  help  |  forum  |  contact us 
Welcome, Guest. Please login or register.
Did you miss your activation email?
June 19, 2013, 09:46:31 PM

Login with username, password and session length
Search:     Advanced search
fragMOTION 1.2.2 Released!
2788 Posts in 689 Topics by 797 Members
Latest Member: slgdnraeojf
* Home Help Search Login Register
+  Fragmosoft Forum
|-+  fragMOTION
| |-+  Feature Requests
| | |-+  -Option Duplicate Group on 'group' context menu please
« previous next »
Pages: [1] Go Down Print
Author Topic: -Option Duplicate Group on 'group' context menu please  (Read 1187 times)
ucm
Full Member
***
Posts: 60


View Profile
-Option Duplicate Group on 'group' context menu please
« on: May 19, 2011, 06:05:40 PM »

I'd love it if we could have a option for Duplicate Group Mesh on the Group context menu pretty please  Smiley

I figure an easy way to set that up would be:

1:  have it automatically deselect everything selected
2:  select the groupmesh with the code used in the context menu's Select Group
3:  then call the code for Edit > Duplicate Mesh Selection
4:  then deselect everything selected
5:  and finally call the code on the newly created duplicated mesh's Select Group

^-- That would absolutely rule man  Grin


* duplicate group mesh contextmenu option.png (71.65 KB - downloaded 12 times.)
Logged
Rex
Sr. Member
****
Posts: 141


Out on the Range it's rough; no smiling allowed...


View Profile WWW
Re: -Option Duplicate Group on 'group' context menu please
« Reply #1 on: June 13, 2011, 07:18:36 PM »

I believe it's already and existing function, under Vertex...Edit--Duplicate Mesh Selection.
Logged
ucm
Full Member
***
Posts: 60


View Profile
Re: -Option Duplicate Group on 'group' context menu please
« Reply #2 on: June 13, 2011, 09:40:33 PM »

You're right bt i was hoping to get it added to the context menu for speed reasons ( all those clickings to duplicate every time tend to take a while with lots and lots and lots of meshes ) Wink
Logged
Rex
Sr. Member
****
Posts: 141


Out on the Range it's rough; no smiling allowed...


View Profile WWW
Re: -Option Duplicate Group on 'group' context menu please
« Reply #3 on: June 14, 2011, 06:31:49 PM »

Oh, come on....lol.

What's the 'real' difference in Right Mouse Click and drag down in a context menu and clicking and dragging down in the Edit menu...LOL.

I, myself, if I really wanted to speed up productivity....why I would create a shortcut[hotkey] to the function...FTW!.......which could be done by each individual endUser; as opposed to taking up Dave's time with redundant functionality...??!!
Logged
ucm
Full Member
***
Posts: 60


View Profile
Re: -Option Duplicate Group on 'group' context menu please
« Reply #4 on: June 15, 2011, 03:09:28 AM »

i'm far faster with the mouse then the keyboard  Grin
Logged
fragmo
Administrator
Not A Newbie
*****
Posts: 10664



View Profile
Re: -Option Duplicate Group on 'group' context menu please
« Reply #5 on: June 15, 2011, 10:34:01 AM »

http://www.fragmosoft.com/downloads/duplicate_group.zip

unzip this into the fragMOTION/schema/UI folder and restart fragmotion.

Using the Edit/Customize User Interface dialog in the Script drop down I created a 3 line UIScript=>LuaUIScript that deselects all faces, selects the group, and then duplicates it. 

Every menu/context menu/toolbar item has a script associated with it that can be called from another script like so:

ui.Schema.Scripts.EditScripts.DeselectAllFaces:Run();
ui.Schema.Scripts.GroupScripts.SelectGroup:Run();
ui.Schema.Scripts.EditScripts.DuplicateMesh:Run();

Then in the Context Menus drop down I created a new menu item under Group and linked it to the new script.

If you create any new functionality like this in the future it's always a good idea to export all the new objects you create to an xml file from the Customize User Interface dialog since resetting the user interface or deleting the ui.xml file will remove everything you added.  Another bonus here is that you can transfer your features to newer versions of the product by copying these files into the corresponding folder. I had you place the xml file in the Schema/UI folder because files in this folder are automatically reloaded when the user interface is reset.

enjoy  Grin

dave
« Last Edit: June 15, 2011, 10:58:50 AM by fragmo » Logged
ucm
Full Member
***
Posts: 60


View Profile
Re: -Option Duplicate Group on 'group' context menu please
« Reply #6 on: June 16, 2011, 02:38:11 AM »

SUPER Awesome Fragmo!!!!!!!!! Thanks man!!!  Grin Grin Grin Grin



* Duplicate_Mesh_1.jpg (78.37 KB - downloaded 7 times.)
* Duplicate_Mesh_2.jpg (72.12 KB - downloaded 6 times.)
Logged
ucm
Full Member
***
Posts: 60


View Profile
Re: -Option Duplicate Group on 'group' context menu please
« Reply #7 on: June 16, 2011, 02:39:29 AM »

This is Sooo sweeeet!   Cheesy

I can't express how much of a time saver this is for me man, Many Thanks!!

If there's ever anything i can for you after all the things you've done for me; just ask man  Grin
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Fragmosoft Forum | Powered by SMF 1.0.8.
© 2001-2005, Lewis Media. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!