PDA

View Full Version : How to get the type of property ??


easyfrog
12-26-2010, 09:03 AM
How to get the type of property ??

I want to get the type of the property. like : integer. boolean . string etc.

I only found then function like "getProperty" "setProperty" and "getPropNames" . But not have the function to get the property's type. who knows ??

lucpet
12-26-2010, 09:57 AM
The showProperties() function has the form:

showProperties <maxwrapper_object> [ <property_pattern> ] [ to:<stream> ]

where <maxwrapper_object> is the 3ds Max entity to be inspected, the optional <property_pattern> is a wild-card pattern that names the properties to be inspected, and the optional to:<stream> keyword argument specifies a Stream Value to output the display to.

eg make a box and use showProperties $box01


You can just use show as a shortcut

show $box01

3rd Dimentia
12-29-2010, 06:50 AM
You can use classof for that

tp = teapot()
classof tp.smooth
classof tp.radius
classof tp.segs

returns:

$Teapot:Teapot01 @ [0.000000,0.000000,0.000000]
BooleanClass
Float
Integer

holycause
12-29-2010, 08:36 AM
http://www.vimeo.com/14085910

;)

CGTalk Moderation
12-29-2010, 08:36 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.