Notifications
Clear all

[Closed] Properties as variables.. how?

I’m not sure how to set up properties as variables. To keep things simple, take the following:

s = sphere()
r = radius
s.r

What would be the correct way to set up something along these lines?

2 Replies

have a look at “struct” in the help.

 JHN
s = sphere()
 r = #radius -- needs to be a name or string literal

hasProperty s r
getProperty s r

?

-Johan