Nabble has removed Mailing-list integration.
Posts created here DO NOT GET SENT TO THE MAILING LIST.
Mailing-list emails DO NOT GET POSTED TO THE FORUM.
So basically the Forum is now out of date, we are looking into migrating the history.

For now you should send emails, people will see them, discuss@lists.openscad.org.

change from tool 0 to tool 1

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

change from tool 0 to tool 1

Louis
what code and were would i insert it to get the printer to go from tool 0 to tool 1 , so that the letters a are different color than the tag ?


pet_name="NAME"; //Your pet name
phone_number="000-0000000"; //Your phone number
bone_height = 5; //Tag height in mm
font_height=2; //Font height in mm


module t(t){
 translate([-1,(-len(t)*3.8),bone_height])
   rotate([0, 0, 90])
    linear_extrude(height = font_height)
      text(t, 10, $fn = 16);
}
module t2(t){
 translate([-1,(-len(t)*3.8),bone_height])
   rotate([0, 0, 90])
    linear_extrude(height = font_height)
      text(t, 7, $fn = 16);
}



//bone
//left side of bone
translate([-10,-30,0])
{
    translate([20,0,0]) cylinder(h=bone_height, r=14);
    cylinder(h=bone_height, r=14);
};
//right side of bone
translate([-10,30,0])
{
    translate([20,0,0]) cylinder(h=bone_height, r=14);
    cylinder(h=bone_height, r=14);
};
//center of bone
translate([-15,-25,0]) cube([30,50,bone_height]);
translate([0,-5,0])
t(pet_name);
translate([11,14,0]) t2(phone_number);

//tag attachment
difference(){
    translate([-16,0,0]) cylinder(r=6, h=bone_height);
    //prevents non-manifold
    translate([-16,0,-1]) cylinder(r=3, h=((bone_height)+2));
}


Sent from the OpenSCAD mailing list archive at Nabble.com.

_______________________________________________
OpenSCAD mailing list
To unsubscribe send an email to [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: change from tool 0 to tool 1

JordanBrown
On 6/6/2021 8:19 AM, Louis wrote:
what code and were would i insert it to get the printer to go from tool 0 to tool 1 , so that the letters a are different color than the tag ?

Somebody with more (more than zero!) experience with multiple extruders will probably provide more information, but I may be able to help a little right away...

OpenSCAD per se won't help you.  The models it produces don't have any color/material/tool marking.  (And, for STL, that's pretty much the way it is.)  There are some ideas being floated but they haven't been implemented.

What I believe you need to do is to generate *two* models, one for each material, and then recombine them in the slicer.

Probably you would have your OpenSCAD program run in one of three modes:  all parts (probably with preview coloring), the first material, and the second material.


_______________________________________________
OpenSCAD mailing list
To unsubscribe send an email to [hidden email]
tp3
Reply | Threaded
Open this post in threaded view
|

Re: change from tool 0 to tool 1

tp3
If it's just a small number of prints, there's another option to just
keep the model as it is and define a manual filament swap pause in
the slicer at the height where the main plate ends. This works with a
single extruder by swapping filament at that point. I don't know if
it also allows for manual tool change by sending the appropriate
g-code.

Maybe there's also some specific slicer option to swap tools at some
given height, but I don't know any details as I never had a printer
with more than one extruder.

ciao,
  Torsten.

_______________________________________________
OpenSCAD mailing list
To unsubscribe send an email to [hidden email]
-- Torsten
Reply | Threaded
Open this post in threaded view
|

Re: change from tool 0 to tool 1

Louis
Thank you very much

Sent from my iPhone

> On Jun 6, 2021, at 13:17, Torsten Paul <[hidden email]> wrote:
>
> If it's just a small number of prints, there's another option to just
> keep the model as it is and define a manual filament swap pause in
> the slicer at the height where the main plate ends. This works with a
> single extruder by swapping filament at that point. I don't know if
> it also allows for manual tool change by sending the appropriate
> g-code.
>
> Maybe there's also some specific slicer option to swap tools at some
> given height, but I don't know any details as I never had a printer
> with more than one extruder.
>
> ciao,
>  Torsten.
>
> _______________________________________________
> OpenSCAD mailing list
> To unsubscribe send an email to [hidden email]
_______________________________________________
OpenSCAD mailing list
To unsubscribe send an email to [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: change from tool 0 to tool 1

Msquare
In reply to this post by JordanBrown
Having a dual extruder I can confirm my experience is exactly as Jordan Brown describes. Two STL files, combine in slicer. AND I have used "conditionals"/"defines" in the openSCAD code to make it run in 3 "modes".


On Sun, 6 Jun 2021 at 17:31, Jordan Brown <[hidden email]> wrote:
On 6/6/2021 8:19 AM, Louis wrote:
what code and were would i insert it to get the printer to go from tool 0 to tool 1 , so that the letters a are different color than the tag ?

Somebody with more (more than zero!) experience with multiple extruders will probably provide more information, but I may be able to help a little right away...

OpenSCAD per se won't help you.  The models it produces don't have any color/material/tool marking.  (And, for STL, that's pretty much the way it is.)  There are some ideas being floated but they haven't been implemented.

What I believe you need to do is to generate *two* models, one for each material, and then recombine them in the slicer.

Probably you would have your OpenSCAD program run in one of three modes:  all parts (probably with preview coloring), the first material, and the second material.

_______________________________________________
OpenSCAD mailing list
To unsubscribe send an email to [hidden email]

_______________________________________________
OpenSCAD mailing list
To unsubscribe send an email to [hidden email]
+--+
| M |
+--+