-
|
How can I dynamically change the color of a cube? I did the following:
But in the scene I do not see any change. How can I force the change in the color. What am I missing? |
Beta Was this translation helpful? Give feedback.
Answered by
jgillick
Oct 1, 2025
Replies: 1 comment 9 replies
-
|
I'm afraid changing the color dynamically is not supported. |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
One idea: create all the variants ahead of time, either in URDF/Mujoco or with
gs.morphs.Box. Build them all in the scene, but only move the target objects into the primary workspace. At each reset swap the target objects in and out of the workspace. This isn't as easy as just modifying the size and material of the element at runtime, but I assume it should be easy enough.