CREO JS API pfcViewOwner.GetCurrentViewTransform() and pfcViewOwner.SetCurrentViewTransform()
Hello, I'm having troubles using this two funcitons.
Effect I'm expecting using this two functions one after each other. I see the same thing without changes by getting actual transformation and applying it to the model.
Now let's see what's actually happens
let model = pfcGetCurrentSession().GetCurrentModel()
let transform = model.GetCurrentViewTransform()
model.SetCurrentViewTransform(transform)This code retrieves transformation from opened model and i expect this transformation to be correct because I do actually see it in model and there is no errors in it. But:
Uncaught Error: pfcExceptions::XToolkitBadInputs in ProViewMatrixSet at <anonymous>:3:7
Is there any extra step needed to repair transformation gained directly from model?

