Hey there,it's Fansub !
You can grab the Beta right here !
I've
been working for the past three months on my first and biggest MEL
script yet,and today i can finally talk a bit more about it !
Quick
Pipe is a curve-edge based path creation tool for Maya.With it’s
selection-based formula,Quick Pipe lets you create multiple shapes like
tubes,pipes,ropes,corrugated pipes,floating
bevels,welds,caves,corridors,etc...
http://i.giphy.com/l3V0qii9ogYOimUVy.gifYou can choose to stay in the
tool’s comfort zone and prototype with it as much as you want to see
the results happening in real-time,or go crazy and play with
different profiles to get some weirdly unexpected results.
Quick Pipe comes with a relatively small documentation and a dozen of videos to show you how to create multiple shapes with it.
https://www.youtube.com/watch?v=x0WDjqNE4EAThe
tool is developed completely with MEL scripting and i used Sublime as
my IDE.Quick Pipe is currently compatible with Maya 2015,2016 and
2016.5.
Maya 2014 and Maya LT support will be added in the coming weeks !
Quick Pipe is currently being beta tested but you can already get it on Gumroad for 8$ !
Replies
Once again I am testing your script on the Mac platform (I know you don't currently support it), but let me report back on some findings:
-----
- First of all, it works. But not without some troubleshooting myself.
- The main problem being the Main UI doesn't launch. I mean I am able to get through the welcome window. But somewhere this check fails: So QuickPipeUserMenu() is never called. Even if I am specifically in Component mode, and have nothing selected, I still end up in this clause: - I am able to workaround it by manually calling QuickPipeUserMenu() in script editor.
- But really all I want to do is to launch the main UI from shelf (instead of it trying to figure out what to do by looking at my selections; I believe this is the right call especially when I am using it as a shelf button: I want my shelf icon to have a consistent function, not a changing one based on user selections.)
----
- FYI, these are the paths for macOS when using Maya LT 2017:
will return
Whilewill return
- Which means your QPUserSettings.ini will be created in the root script folder.
- I would say it's better to define a folder name string unique to Quick Pipe at the top of script, so you can re-use that path throughout. And since you are using an anonymous block, I think it won't pollute the global scope: - You can store the settings in this folder instead, and of course other QuickPipe profiles as well.
- I know people like using userBitmapsDir folder for custom icons. BUT unless you want to re-use these icons in multiple plugins, I think it's fine to store them under your custom folder at userScriptDir. And it makes installation easier (you just extract and copy the folder into your script folder, done!)
----
Lastly, you might want to update the PDF document (make it pure JPEG for example), for some reasons it will freeze the macOS UI. I tried both the built-in Preview.app and Chrome, it's borderline unusable on my Macbook Pro 2015.
----
And IMHO mate, you need to work on the code formatting. I am an experienced programmer and the script is borderline unreadable for me.
(Especially your long if-else clause where you leave the closing bracket before your comment. I never know when your if-else clause will end
ADN Modeler Tools and Mesh Blend have both actually adopted a unique folder structure for all their content, and in a more recent Quick Pipe build for Maya 2018 i've made that transition, too. I'm currently in the midst of a production at work and don't have much time these days unfortunately, but rest assured i'm checking every post you make and trying to update the code accordingly
@rodpv Yes i've got dozens of reports confirming it to work, and i'm doing a checkup on it for 2018, too
@Zelfit Sorry for the late reply, just seen the message after the recent posts i'll investigate that issue and come back to you as soon as i have more info on it.
I got this plugin from gumroad. Looks cool, works cool, so thanks ! One question though: Can you make it so next time ,that it opens the Quick Pipe window straight forward? Going to all that ,select the obj then go to component then make sure nothing is selected it's overkill really!! I need the window, markin menu>> booom window please! If i have 10 curves and i want to put a pipe on all of them , i need to make the retarded steps on a random obj first to be able to open the window and go to Multi Pipe! That's not how to build an intuitive simple way of working man ! Keep it simple please ! BTW not all of us want to put all this pipe tools on shortcuts, you know why? Because we have tons of shortcuts on other more important tools man ! We don't make pipes all day long , please give us the simple window by default ! Thanks man !
And maybe just a slider that rebuilds the source spline while in the QP edit mode.
Currently, when you select Edit Pipe in the Quick Pipe Menu only the profile is adjustable as it's being removed from the ADN_NewPipe_HGroup_1 group and added to the New_QP_PolyPipe_1 group. The paths are left as is, but one of them should in theory also be moved in the process making it adjustable. When you select Edit Pipe again the profile is placed back into the ADN_NewPipe_HGroup_1 group which is probably why it's hidden in the first place and not something that should really be needing adjusting.
To add on to Chase's answer. "GeoPath_1" is used for adding more subdivisions to the pipe and "Base_CPath-2_1" just influences the curve.
The Pipe really follows "Base_CPath_1"
$QPipeProfile = $GetPrfl[0]; }
string $GetPath[] = `listConnections -s true -scn true $Attrs[4]`;
$QPipePath = $GetPath[0];
HI there,
The script doesn't really work in my Maya 2022.
Sourced LaunchQuickPipe.mel instead of opening toolbox window, executes a random procedure from it. Each time a different one.
Here is what echo commands window says;
// Result: scriptEditorPanel1Window|scriptEditorPanel1|formLayout198|formLayout200|paneLayout3|cmdScrollFieldReporter1 //
source "LaunchQuickPipe.mel";
// Warning: file: C:/Users/DS-870EVO/Documents/maya/2022/scripts/LaunchQuickPipe.mel line 1053: No objects specified that can have connections. //
GetFilteredSelectionSets();
// Result: defaultObjectSet defaultLightSet //
GetFilteredSelectionSets();
// Result: defaultObjectSet defaultLightSet //
GetFilteredSelectionSets();
// Result: defaultObjectSet defaultLightSet //
xform -cpc;
if(`exists gameVertexCountRefresh`) { gameVertexCountRefresh(); };
if(`exists gameVertexCountRefresh`) { gameVertexCountRefresh(); };
xform -cpc;
if(`exists gameVertexCountRefresh`) { gameVertexCountRefresh(); };
sets -e -forceElement Pipe_MaterialSG;
GetFilteredSelectionSets();
// Result: defaultObjectSet defaultLightSet //
// Result: Pipe_MaterialSG //
GetFilteredSelectionSets();
// Result: defaultObjectSet defaultLightSet //
GetFilteredSelectionSets();
// Result: defaultObjectSet defaultLightSet //
GetFilteredSelectionSets();
// Result: defaultObjectSet defaultLightSet //
if(`exists gameVertexCountRefresh`) { gameVertexCountRefresh(); };
if(`exists gameVertexCountRefresh`) { gameVertexCountRefresh(); };
if(`exists gameVertexCountRefresh`) { gameVertexCountRefresh(); };
if(`exists gameVertexCountRefresh`) { gameVertexCountRefresh(); };
GetFilteredSelectionSets();
// Result: defaultObjectSet defaultLightSet //
if(`exists gameVertexCountRefresh`) { gameVertexCountRefresh(); };
if(`exists gameVertexCountRefresh`) { gameVertexCountRefresh(); };
if(`exists gameVertexCountRefresh`) { gameVertexCountRefresh(); };
if(`exists gameVertexCountRefresh`) { gameVertexCountRefresh(); };
if(`exists gameVertexCountRefresh`) { gameVertexCountRefresh(); };
xform -cpc;
if(`exists gameVertexCountRefresh`) { gameVertexCountRefresh(); };
xform -cpc;
GetFilteredSelectionSets();
// Result: defaultObjectSet defaultLightSet //
New Pipe created !
Any idea why that is?
Use the sweep tool.
https://youtu.be/6RIHSfW5x2Q