ScriptSpot home

Forum topic · General Scripting

linkcomposite class Vizblock vs Block\Style parent objects

By xXDambielXx · 2010-10-15

Description

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 (4)
Jon Seagull

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

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

Graph

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

Reply to Graph
xXDambielXx

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.