RealFlow Vector type
Posted: Fri Oct 11, 2013 11:42 pm
Hello,
I seem to be having trouble with the RealFlow Vector type. I am using a python function that gets all parameters then grabs all their values. Some of the values are pointers for RealFlow Vector. Type(foo) is successfully identifying the vectors but the if statement will not except RealFlow Vector as a type to check against.
# this works
rfKeys = node.getParameter('Scale')
if type(rfKeys) is float:
scene.message('is a float')
else:
scene.message('is not a float')
# this does not work
# it will also break if I replace the vector with a float or str.
rfKeys = node.getParameter('Scale')
if type(rfKeys) is RealFlow Vector:
scene.message('is a RealFlow Vector')
else:
scene.message('is not a RealFlow Vector')
type(rfKeys) returns <type,'RealFlow Vector'> but will not check for it.
I have also tried:
RealFlowVector
Vector
Is there another way to test for this? Any information would be great.
Thanks,
Jesse
I seem to be having trouble with the RealFlow Vector type. I am using a python function that gets all parameters then grabs all their values. Some of the values are pointers for RealFlow Vector. Type(foo) is successfully identifying the vectors but the if statement will not except RealFlow Vector as a type to check against.
# this works
rfKeys = node.getParameter('Scale')
if type(rfKeys) is float:
scene.message('is a float')
else:
scene.message('is not a float')
# this does not work
# it will also break if I replace the vector with a float or str.
rfKeys = node.getParameter('Scale')
if type(rfKeys) is RealFlow Vector:
scene.message('is a RealFlow Vector')
else:
scene.message('is not a RealFlow Vector')
type(rfKeys) returns <type,'RealFlow Vector'> but will not check for it.
I have also tried:
RealFlowVector
Vector
Is there another way to test for this? Any information would be great.
Thanks,
Jesse