change position without creating a new object?

5 views
Skip to first unread message

Matthieu Hendriks

unread,
Jun 15, 2025, 1:25:58 AMJun 15
to PythonSCAD
I there a shorter way to change the coordinates from an object without creating a new object for instance something like?


s=sphere(15)
s['x']=10
show(s)

Guenther Sohler

unread,
Jun 15, 2025, 2:58:28 AMJun 15
to Matthieu Hendriks, PythonSCAD
  nope, that's not possible.

Sphere primitive is always in the center and does not support another origin.
You can easily write:

s.right(10).show() 
But that's not what you asked for.






--
You received this message because you are subscribed to the Google Groups "PythonSCAD" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pythonscad+...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/pythonscad/3a2182ee-3147-4448-a01f-768fd568f9c0n%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages