Python : VariableTag

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 14/10/2010 at 19:24, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   12 
Platform:   Windows  ;   
Language(s) :       PYTHON  ;

---------
Hello,

I'm trying to read spline's datas from a VariableTag, and

GetAllHighlevelData() or GetLowLevelDataAddressW() doesn't works

Exemple in a python tag on a spline :

  
def main() :   
    obj = op.GetObject()   
    for t in obj.GetTags() :   
        if t.GetType()==c4d.Thermite2d :   
            print t.GetDataCount()   
            print t.GetDataSize()   
            print t.GetAllHighlevelData()   

GetDataCount and GetSize works fine but GetAllHighlevelData get a error :

TypeError: Unknown data of variable tag type.

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 14/10/2010 at 22:12, xxxxxxxx wrote:

Hi olidd,

the tangent tag is not supported to be read out via Python, but SplineObject.GetTangent(id) might help you.

Cheers, Sebastian

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 15/10/2010 at 22:12, xxxxxxxx wrote:

Thx Sebastian,

SplineObject.GetTangent(id) works fine, and it's easier !

Cheers