@m_adam Shoot, tried calling it 3X and still nothing on the cloner (spline mode) object.
(failing) test file attached
fbxtest_v04.c4d
@m_adam Shoot, tried calling it 3X and still nothing on the cloner (spline mode) object.
(failing) test file attached
fbxtest_v04.c4d
Hello, I would use it quite often if it could be added: a Quaternion rotation setting to the XPresso Mix node... much like there is in the c4d.BaseObject class as it is accessible through the GUI
Attributes of a regular Null object showing Quaternion setting:
Attributes of a Mix node in XPresso, where a boolean checkbox like above could live:
I have constructed a Quaternion Matrix Mix using an XPresso Python node myself, but thought this would be a useful feature to be added in the default XPresso API for users who have not yet learned how to implement Quaternions in Python. Alternatively, perhaps other users will find the following code useful anyway
import c4d
from c4d import utils
#Welcome to the world of Python
def main():
global MatrixMix
q1 = c4d.Quaternion()
q1.SetMatrix(MatrixA)
q2 = c4d.Quaternion()
q2.SetMatrix(MatrixB)
q = c4d.utils.QSlerp(q1, q2, Mix)
MatrixMix = q.GetMatrix()
MatrixMix.off = c4d.utils.MixVec(MatrixA.off, MatrixB.off, Mix)
Cheers!
-Leah
Edit: also I am sorry if this is posted incorrectly. This seemed like the best place to put this post since there is usable Python code included