Forum

#1 2017-02-11 11:39:11

Eniara
New member

Python - get HostFileName

HI !

Actually, i have a big scene and for each primitives in a node "HIGroup", i need to recover their Host Filename.
I succeed to get the property of the HostPath (and i'm not sur is the wanted parameter...) but not the value:

"for HI in HIGroup.children("Primitive", recursive=True):
    print(SceneGraphNode.HostPath)"

><property object at 0x00000160E36234F8>

Can you help me please ? Thanks !

Offline

 

#2 2017-02-11 22:21:45

doubleailes
Guerilla dev, the guy to hug

Re: Python - get HostFileName

I would go for something like this

Code:

for HI in HIGroup.children("Primitive", recursive=True):
    print(HI.HostPath.get())

Philippe Llerena

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2008 PunBB