linkcomposite class Vizblock vs Block\Style parent objects

Does anyone know a way to tell the difference between the two via maxscript? Both are of the same class and superclass, and showproperties returns false for both.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Jon Seagull's picture

This is way late, but maybe

This is way late, but maybe it will help someone else...

I came across this trying to solve the same problem.

Subanim 4 contains the proper name, so

getSubanimName $myVizBlock 4 
#Object__VIZBlock 
 
getSubanimName $myBlockStyleParent 4
#Object__Block_Style_Parent
Graph's picture

hmm how about inspecting the

hmm how about inspecting the $.mesh in that case?
it might not be the thing to tell them appart but be interesting at the least

btw are they both default max #plugins? :P

Raphael 'Insanto' Steves
http://Graph.Net84.Net

Graph's picture

use getpropNames and compare,

use getpropNames and compare, then use hasproperty to check wich is wich in future ?

Raphael 'Insanto' Steves
http://Graph.Net84.Net

xXDambielXx's picture

Thanks for the reply

Thanks for the reply insanto.

No unfortunately as with showproperties, getpropnames doesn't return any properties, as there aren't any.. if I view these two object types in the Trackview, there are no properties there either. Just the transform info.

Strangley, if I right click the block/style parent object, and check it's object properties, it claims to have a given number of vertices, depending on what objects were linked to it I assume.. but it doesn't actually have any geometry in the scene. If I put an edit patch modifier on it and try to select all vertices, there is nothing to select.

I'll try to gather up a simple scene with these two object types in it, and post it later to see if anyone can find a test that works.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.