discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Re: [OpenSCAD] How to use some else's code with yours?

M
MichaelAtOz
Thu, Jul 6, 2017 1:58 AM

Hi Skybound,

Firstly, your post is still flagged as "This post has NOT been accepted by
the mailing list yet", so nobody gets it unless they look.
You need to subscribe to the  mailing list
http://forum.openscad.org/mailing_list/MailingListOptions.jtp?forum=1  ,
and CLICK THE LINK in the registration email (check your spam folder).

Re the servo.

  1. You need to edit thing-28566 (servo_arm.scad), add line 208

    translate([0, 0, head_heigth]) {
    if (arm_count)                                      //  <--- add this
    line - just prevents an error message.
    for (i = [0 : arm_count - 1]) {

  2. In you code

Add, at top:

use <servo_arm.scad>  // from Thing:28566    (make sure your file and

this are in the same directory)
translate([0,0,20])
rotate([180,0,0])
servo_standard(0,0);

  1. Adjust your models shaft & the above translate of the servo hub to the
    right position.

Admin - PM me if you need anything, or if I've done something stupid...

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it! http://www.ourfairdeal.org/  time is running out!

View this message in context: http://forum.openscad.org/How-to-use-some-else-s-code-with-yours-tp21778p21781.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Hi Skybound, Firstly, your post is still flagged as "This post has NOT been accepted by the mailing list yet", so nobody gets it unless they look. You need to subscribe to the mailing list <http://forum.openscad.org/mailing_list/MailingListOptions.jtp?forum=1> , and CLICK THE LINK in the registration email (check your spam folder). Re the servo. 1. You need to edit thing-28566 (servo_arm.scad), add line 208 translate([0, 0, head_heigth]) { if (arm_count) // <--- add this line - just prevents an error message. for (i = [0 : arm_count - 1]) { 2. In you code Add, at top: use <servo_arm.scad> // from Thing:28566 (make sure your file and this are in the same directory) translate([0,0,20]) rotate([180,0,0]) servo_standard(0,0); 3. Adjust your models shaft & the above translate of the servo hub to the right position. ----- Admin - PM me if you need anything, or if I've done something stupid... Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above. The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out! -- View this message in context: http://forum.openscad.org/How-to-use-some-else-s-code-with-yours-tp21778p21781.html Sent from the OpenSCAD mailing list archive at Nabble.com.