[Plugin] Pipe Tool (UPDATE 3/19/2011)
-
Michael,
Don't get me wrong here for this question; you "made a free version of it"? (Meaning you used that code and such)
OR you made a tool yourself that has similar features as 3SKENG?
Maybe it's just your wording. But you know, we take piracy and such very seriously here.
-
Seems you must change the title of the subject in "Pipe tool"
-
OK, thanks. I have not tried it yet but then I will! I hope you do not mind my question!
(And thanks for the plugin, too - maybe Pilou is right and you should give some other title/subject...) -
By the way, in order to get your plugin to the Index, simply add
[Plugin]
to the subject line. That page is automatically generated (somehow - that's too crazy to think about) -
I would suggest to title this [Plugin]Pipe Tool as it's possibly infringing on it's bigger brother's territory.
But its a great gesture to share this here
-
Nice work Builder Boy, very useful ... I just cannot figured out what's the meaning of the pipe room is it a grid that helps to positioning the components...or what?
Thanks -
@unknownuser said:
I would suggest to title this [Plugin]Pipe Tool as it's possibly infringing on it's bigger brother's territory.
Ditto.
A couple of notes about the distribution:
Could you make sure that the icons are in a sub-folder - so you only have the .rb file in the root. That way it's easier to manage the plugins folder.
(It's the common practice of distrobuting plugins: one .rb file in the plugins folder, and the remaining files in a sub-folder.Is the "previous versions" folder needed?
I looked at your code - saw you added a method under
class Geom::PolygonMesh
<span class="syntaxdefault">def add_lathe</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">pts</span><span class="syntaxkeyword">, </span><span class="syntaxdefault">center</span><span class="syntaxkeyword">, </span><span class="syntaxdefault">dir</span><span class="syntaxkeyword">, </span><span class="syntaxdefault">angle</span><span class="syntaxkeyword">, </span><span class="syntaxdefault">numsegments</span><span class="syntaxkeyword">) </span><span class="syntaxcomment"># Copyright 2004-2005, @Last Software, Inc. (I changed it a little) </span><span class="syntaxdefault"></span>
This might cause problems since you changed the code. If some other plugin relies on the original
Geom::PolygonMesh.add_lathe
then your plugin will overwrite this.
Avoid such conflicts by not using the same method name as the one you modify. Personally I prefer to never extend the base classes just in case someone else should be thinking of adding a method of the same name. We've already had and still have issues where plugins conflict over methods extended in the base classes.
Thisadd_lathe
would be very easy to port into a method under the PipeTool class you use in the rest of the plugin. -
it would help if you could make a short video demonstrating what the plugin does.
-
-
Look at this.
-
Thank you for sharing.
-
@builder boy said:
How? I don't have any software. I don't even have a microphone.
Cam Studio is one free screen capture program...maybe you can just make a video of you making that futuristic motorcycle and other examples, and upload it to YouTube. Voiceover isn't even necessary, but then you could make some explaining text to supplement the video.
Thanks for your efforts!
-
@unknownuser said:
What has this got to do with your 'plugin'?
I built it out of the pipes I made with my plugin. The wheel is 4 curved pipes that I combined. The handle is made out of a few pipes. The only things I didn't use my plugin for is the headlight and the red light on the back and the room I rendered it in and, a little hand modeling. (erasing unnecessary geometry, adding color Etc...)
-
Anybody can use this plugins?
Upzip it to the Plugins Cata
But Nothing Happening........ -
@unclex said:
Anybody can use this plugins?
Upzip it to the Plugins Cata
But Nothing Happening........I don't understand what you're problem is. Can you explain it better?
-
@unknownuser said:
Anybody can use this plugins?
Upzip it to the Plugins Cata
But Nothing Happening........You need to put the file "Pipe Tool v4.0.rb" along with the .png files in the ..\plugins folder. You cannot put the folder in the ..\plugins directory.
I also want to thank you, Builder Boy, for a very nice plugin, great work!!
A few pointers that may be possible to implement:
- T-junction button?
- Flange button?
- is it possible to have metric, milimeter units, as standard?
- is it possible to make the pipe and parts hollow, with a thickness parameter?
Overall a very nice plugin. I would like to contribute but I'm sorry to say I don't have the knowledge to write or program a plugin, hmm...
-
@perryman said:
- T-junction button?
- Flange button?
+1
except the pipe room, I see that overriding the values without " it uses metric units
-
@builder boy said:
@unclex said:
Anybody can use this plugins?
Upzip it to the Plugins Cata
But Nothing Happening........I don't understand what you're problem is. Can you explain it better?
if i don't change anything, it works
but i want change the PNG catalog,or change the PNG name(ofcouse i changed the file‘s name,too), change ‘ " to mm,it cannot work……
For example
@srad = '6"' change → @srad = '300.mm'
piperoom.small_icon="Pipe Room.png" → piperoom.small_icon="PipeRoom.png"
-
I haven't even looked at the code... but if @srad is being set as a string '1"' and then .to_l is used on it to return a 'length' then you can change it to another default unit e.g. '25mm' [no '.']. If it's a length already
@srad = 1.0
[in inches if NO units] or=1.inch
then you do use a '.' as in@srad = 25.mm
to make it in 'mm'...The problem in using a string is you are forced to use a units suffix.
If it were a length to start with then it's always a length and in 'current' units, so if you have 'mm' set in Model Info even it it were set to be 1 ["] it'd show as 25.4 [mm]... -
Thank you Builder Boy!
Advertisement