I'm trying to use a camera selected from a ComboBox and set some keys. This code works but gives a strange message and doesn't produce any keys on the timeline (but the Camera still moves as directed)
---------------
# get camera name from ComboBox "camera_cb"
selected_cam = camera_cb.currentText()
# assign camera name from above to "object"
object = RLPy.RScene.FindObject(RLPy.EObjectType_Prop, selected_cam)
# set the key (other code in between, but this is the only line referencing keys, and no errors are generated)
obj_control.SetKeyTransition(keytime, RLPy.ETransitionType_Ease_In_Out, 1.0)
---------------
Again, the camera moves as requested, but no keys are produced and the Console Log displays this message:
<RLPy.RICamera; proxy of <Swig Object of type 'RO::RICameraPtr *' at 0x000000001D6109F0> >
Apparently not an error, but according to Google U, this has something to do with C++ wrapper (way above my level of comprehension). And maybe the keys aren't being produced because it's working on a "proxy" instead of the actual camera? But then why would it move if there are no transform keys?
Reallusion Certified Director / Reallusion Best Visual Award / Reallusion Certified Content Developer
See all the G-Tools Plug-Ins available for iClone here: G-Tools Plug-Ins