Skip to content

The script isn't generating the complete row, as it says it does #22

@jnegrete2005

Description

@jnegrete2005

Hi! I am new to this repo, and new to openscad. I was planning on building a script to make my keycaps on Blender, but stumbled upon this repo, and had a eureka moment.
I wanted to use the ROW feature, but it doesn't seem to be working. Can someone explain to me what am I doing wrong? Here's what I do:

➜  ROW='[["1", "|", "!"],["2", "@", "\""],["3", "#", "•"],["4", "$", "~"],["5", "", "%"],["6", "¬", "&"],["7", "", "/"],["8", "", "("],["9", "", ")"],["0", "", "="],["'"'"'", "", "?"],["¡", "", "¿"]];'
➜  openscad -o first.stl -D "ROW=${ROW}" keycap_playground.scad

The script runs. However, only one key is generated with the legends on the LEGENDS variable, which previews on jscad. I have my ROW defined as such on the script:

ROW=[["1", "|", "!"],["2", "@", "\""],["3", "#", "•"],["4", "$", "~"],["5", "", "%"],["6", "¬", "\&"],["7", "", "/"],["8", "", "("],["9", "", ")"],["0", "", "="],["\'", "", "?"],["¡", "", "¿"]];

I don't think it is "colliding" because if I remove that, the same thing happens.

Also, I think that the keys are rotated. Because when previewing the key with a legend, it shows rotated 180 deg on the z-axis. I rotated the legends to get the correct view, but it is difficult to manipulate translations with that rotation.

Can you guys help me pls?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions