I’m trying to use one view as a template to make other views of the same area and need to copy the cropbox, and apply it to another view. I’m using the code from this topic as an example:
The GetCropShape function seems to be spitting out four curveloops, which I can’t figure out how to combine into a single closed curveloop, which is what 'SetCropShape` is looking for. Trying to append the different sections throws an error: “Expected curve, got curveloop”
In addition to spitting out separate curveloops, it’s only giving four, when I would expect either one or six given the view shape shown.
@stevenmathias1
Just wondering - Any particular reason why Scope Box is not being used to control the View crop?
That way, if it’s already applied, copying from one view to another would be straight forward…
Again, that is because I don’t know coding &/or Python!!