View Full Version : Properties as variables.. how?
Malkalypse 12-08-2009, 02:05 AM 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?
|
|
floopyb
12-08-2009, 08:12 AM
have a look at "struct" in the help.
s = sphere()
r = #radius -- needs to be a name or string literal
hasProperty s r
getProperty s r
?
-Johan
CGTalk Moderation
12-08-2009, 08:38 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.