Is there a way to create shortcuts?
3Diva
Posts: 11,287
in The Commons
I use a lot of older clothing items and I find that converting the items to SubD and adding a Smoothing Modifier can really help them fit better. That's something do A LOT. Is there a way to create a shortcut or a script or something that will do that with one click or two? That way every time I load older clothing items I don't have to: Edit >> Object >> Geometry >> Convert to SubD then then Edit >> Object >> Geometry >> Add Smoothing Modifier. Having a shortcut or script to do that with one or two clicks would be a really big help. Is there a way to do that?
Comments
Have you tried assigning a keyboard shortcut to the menu item?
This thread has some information... https://www.daz3d.com/forums/discussion/114941/keyboard-shortcuts
@ Divamakeup
Main Menu: Window>Workspace>Customize
at the right side go to the Tool Bars tab
right-click Add Toolbar - name it something
you can choose some actions from the left side and drag&drop it to your new toolbar (actualy I couldnt find the Add Smoothing Modifier there )
maybe create an script for Add Smoothing Modifier and Convert to SubD on the selected node and put it to your actions in Main Menu: Scripts
Thank you for the link. I read the posts and tried the Workspace Customize but there doesn't seem to be the option to create a short cut for those two actions (at least not that I can find).
I imagine you can write a script to maybe make a window or tab with a bunch of shortcut icons you can just click, but I've never gone in depth with Studio scripting.
Both commands are under Scene Hierarchy in the action list, and right-clicking gives the option to Change Keyboard Shortcut.
Scene Hierarchy? I would never have guessed there. lol Thank you so much, Richard!! :D I finally got my short cuts! YAY!!
Would be neat to have a seach text-field on top to filter the action list, like we have one in the scene pane - in this case type in "smooth" and you get shown a list with Add Smoothing Modifier and Smooth Weight Map. I spent too much time searching the action list just to find out that the action I'm searching isn't listed where I've expected it. Would be awsome if you could switch this filter text-box with a little butteon beside to search for current key-mappings also - for example I want to know what action is linked to Ctrl+E - I type it in and I can see the action below, but this is just a suggestion maybe too much to ask for.
Hi, I want to give you a little update on the "Customize DazStudio" options you have to customize the shotcuts, toolbars and menues to reach the "Actions" you need on hand more easiely.
changing/adding ShortCutKeys / Toolbars / Menues:
Clearing the Timeline #Comment_3007506
and you may want to have a look at:
change Mouse Button Modifiers (Viewport 3D Navigation):
Animation Tools #Comment_3010691
Thanks @Divamakeup for asking this question - this was the initial reason for me to investigate futher on this subject.
The current Customise dialogue is still using elements of Qt3 - I have a bug open, for a diffrent issue, that notes it needs updating (and we know that theya re working to move to a newer version of the Qt Framework). Additions like a filter box will probbaly have to wait on that, otherwise it would just be more stuff to switch later.
Edited because I'd written QT instead of Qt on one occasion.
@ Richard Haseltine
OK, I understand - so we have to wait for DazStudio v5 then they will implement the new QuickTime Framework maybe - cant wait to see that.
No, it doesn't need to be Qt 5; it just needs to not be Qt 3.
And, Qt != QuickTime.
I came across this thread while searching for something else. The code below (modified from what Daz has published) will add the subD and smoothing modifiers in one go. Save it to your script folder and you can then make it into a custom action.
Please make sure you include the CC3.0 by attribution copyright statement - if you download the script, using the link at the top rather than copying the text, then it will be included for you.
Thanks for the tip. I updated what I posted to include that.
You have to be careful to include the licence if you use those scripts examples.
Here is what I once did as I tried Daz Script writing: Convert to SubD script
The idea was to finaly have a control dialogue for to change all settings about SubD and Smoothing Modifier on the selected scene items. Then I thought a step further and wanted to include an OBJ export of what is selected instead of what is visible with an "silent" export to the given path. I got this idea from here: How to export only selected clothing as an object in DS
Until the present time I never got this idea working to pass "arguments" (those are basicly the values to set for SubD and Smooth) from one script to another.
Here is the latest script I've written there: ApplyOrZero_SubD_SubDivLevel_MeshResLevel_v4.dsa
if someone could create a script to enable FBX exports with subdivision hence HD morphed mesh I would sacrifice my firstborn
(out of eggs and childless but the thought counts)
I saw there was also a requirement to indicate changes in a "reasonable manner". Are there any standards for that?
i was coming across a lot of your posts today as I was searching for how to customize the menus and toolbars. Helpful, so thanks for sharing those.
@ RGcincy
You see I've tried to document the version history and the references to the sources in the top comment section of the script code, getting alot of comment lines in the end, but its important also for humans to understand the purpose of the written script code.
I'm sorry if this is a stupid question, but how do I save the above as a script for inside Daz Studio?
Not stupid at all. I wasn't sure if I could post a file of it or not. Highlight the text in the box, then Ctrl+C to copy and paste it into a text or word editor. Then save it to your My Daz3D Library/Scripts folder with a name like "Add subD and Smoothing modifiers.dsa" (you may have to save it as a .txt file then change those three letters from .txt. to .dsa using File Explorer or similar).
Check the File Type list when saving - sometimes you will get Text (*.txt) and All files (*.*), the latter will allow saving as .dsa
Thank you! :D I appreciate you taking the time to write up a quick tutorial. I felt silly asking - but hey, if I don't ask I will never learn. heheh :)
No problem. I was just learning to do this for some dForce stuff and ran across this thread and thought "I think I know how to do this now".
Not sure when this was posted, but i too would sacrifice @WendyLuvzCats unborn firstborn along for an FBX export script that carried HD Morphs along with textures and animations (specifically trying to find a path to Houdini that would allow me to bring animated and textured Genesis 8 figures into that program for further animation and effects).
. . . also, is there a way to add a shortcut key for Create SubCategory ?? Couldn't find that entry anywhere. Right now just using the right click menu to add one subcategory at a time. Didn't know if there was a more efficient way.
Thanks.
Ctrl Shift D and M will add subd and smooth.
@WebdyKzvsCatz and @Mosk the Scribe
Re: Getting HD mesh versions into Houdini - I have that tool (works in Houdini 18). It's using a parallel FBX/OBJ export route like most other solutions out there, but it combines the HD static mesh into the FBX based rig, so you can animate (and render) in Houdini using either (or even both).
It also supports using morphs (e.g. facial expressions). It also supports "layered" FBX (read: You get cloths and hair rig-converted as well).
That said, it is a general-purpose FBX-rig-tool, not focused on DAZ but solving a general joints/bones rigging problem (converting the former into the latter), DAZ support is a mere "sideproduct". Since it's a private fun-project, I can not provide any kind of support and I am currently focusing on solving those technical problems, not on any vendor-specific needs (plus, DAZ has let me know some time ago that supporting any kind of development is completely out of their interest, I also understand that even linking to the "work in progress" thread on the sideFX forum is not allowed here, just google it), but I am willing to cooperate with (technically savvy) DAZ users on improving the (future, not current) animators' needs and ideas for FBX imports into Houdini (including DAZ sourced material). I would ask those interested to contact me privately through my website (which I probably am not allowed to link to either, it's marc dash albrecht dot de) and tell me a bit about their specific (technical) needs/requirements and expertise. Again, I am only interested in making the technical side as smooth as possible, any artists-support is currently out of my abilities as I am not making any money from this.
Generally, I could write a tool that reads DAZ native figure files and imports those into Houdini. I could apply the conversion technique so that HD versions (and, of course, morphs) could be used as well - that's actually not that hard to do, it's just WORK. However that I would not want to do as a "hobby project" as I can easily convert the data myself and have no need for DAZ figures myself (my paid work deals with multi-million-point meshes). Delving into this would require such a tool to be commercially "feasible", read, it would have to provide the income that pays for continued development and professional support. From what I understand, there is no (real) money to be made in the DAZ universe (I mean, from tools/pipeline support, it may be different for "content providers"!) - I would be very happy to learn otherwise and am willing to discuss cooperation roads (business-wise).
Marc Albrecht