Greetings!
Does anybody have a working example of using the node’s simd... methods?
E.g., I seem to be unable to get the simdScale, regardless if I try to use the default encoding or supply restype and argtypes.
See:
from objc_util import *
from ctypes import *
load_framework('SceneKit')
simd_float3 = c_float * 3
SCNNode = ObjCClass('SCNNode')
aNode = SCNNode.alloc().init()
p5 = aNode.simdScale(restype=simd_float3, argtypes=[])
print('p5[0]= ', p5[0])
#results in p5[0]= -8.552001213509498e-39, should be 1.0
I have tried a few variations, including restype as c_void_p, but nothing doing. The counterpart properties (aNode.scale()...) work as advertised.
Thanks in advance, Peter