GetPrimitiveType() returns allways 0
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 06/11/2004 at 09:22, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.100
Platform:
Language(s) : C.O.F.F.E.E ;---------
This code here will print out the primitivetypeid. If you create a COFFEE Expression on a sphere primitive, you will see that it will return always 0 - version 9 does this, version 7 returns correct value.main(doc,obj) { if (instanceof(obj,PrimitiveObject)) { var type = obj->GetPrimitiveType(); println(getclass(obj),", type = ",type); println("Spheretype would be: ",PRIMITIVE_SPHERE); } }
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 06/11/2004 at 12:59, xxxxxxxx wrote:
This is no bug. Since v8 the primite types do all represent their own class.
for example: var cube = new(CubeObject);
Use a hex-editor to get all other primitive object class definitions. (also do search this forum for this topic. It was already discussed)
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 06/11/2004 at 14:14, xxxxxxxx wrote:
Oh - sorry - but why is the documentation never updated? And why isn't the typeID returned for backward compatibelity?
Currently I am using a stringcompare for classnames which is in my Eyes a bit hacky. -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 07/11/2004 at 05:42, xxxxxxxx wrote:
yes, it´s a pity but COFFEE hasn´t been updated since version 6. And the docs haven´t either. A lotta people, including me, have been asking for a COFFEE update, and MAXON already said COFFEE will be updated some day but there was no date or time schedule introduced.
But you can use GetType() to compare the object types btw.