Do you want to change the sphere segments? I can’t understand what 's the subdivisions of the sphere. SomeTimes mesh can’t be changed,you can dispose the old mesh,and create a new mesh in the same position.
Hi and Welcome to our Community,
First, you don’t have to apologize for asking questions. Asking is never stupid and we all had to start with something new (and continue to learn new every day).
Your approach would work fine. Just don’t forget to dispose of the old primitive when the user creates the new one.
As for the trick of retrieving the values from the mesh creation kindly shared by @Happy0Ending it will work for any primitive mesh created in BJS. It will not work on custom or imported meshes. For this, you should use the technique shared by @Takemura .
Again, welcome to the community and I hope you are enjoying your discovery of BJS.
Meanwhile, have a great day