How to get the type of property ??

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
  12 December 2010
Angry How to get the type of property ??

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 ??
 
  12 December 2010
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
__________________
Luke
Web site

3d Max 2012 Win 7
Intel Corei5 8g Ram


Last edited by lucpet : 12 December 2010 at 09:59 AM.
 
  12 December 2010
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
__________________
Not bad. For a hughman.
 
  12 December 2010
http://www.vimeo.com/14085910

__________________
FX TD - Sony Pictures Imageworks
ww.aespid.com
 
  12 December 2010
Thread automatically closed

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.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 08:25 PM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.