Hi, and first excuse me for explanation, it not easy for me to speak english.
I’m trying to attach a label to a function ( “PositionX” = setX() , …), to call this function with the label as argument .
Well, code will explain better than i :
import direct.directbase.DirectStart
from pandac.PandaModules import *
obj = render.attachNewNode('myNodePath')
pointersFunc = {"PositionX":NodePath.setPos}
func = pointersFunc["PositionX"]
obj.func(0, 10, 10)
but this is returning : AttributeError: ‘libpanda.NodePath’ object has no attribute ‘func’
I’m not using this kind of code, so any advises are welcome,
Thanks
3