Create a secton view with split crop region
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello Everybody,
My quest is to create a script that creates a section view with a split crop region.
Below my (simplified) python script to make this possible:
#The inputs to this node will be stored as a list in the IN variables. view = UnwrapElement(IN[0][0]) #SectionView created before
TransactionManager.Instance.EnsureInTransaction(doc) cropRegionMananager = view.GetCropRegionShapeManager() #get cropregion of view cropRegionMananager.SplitRegionVertically(0,0.1,0.5) #split cropregion vertical at 0.1 of height and 0.5 of height TransactionManager.Instance.TransactionTaskDone()
Result of above script:
Result of script
When you select a split cropregion, a two sided arrow show op in the center of the region, when hovering, it says move view region (see image below). I can't seem to find how to use this function with the use of the api.
highlighted function I would like to use in APIBelow, the wanted result of my script, (a split crop region, moved to be near the other part of the crop region).
Wanted End Result
Does anybody know if this is can be done?
I would be helped a lot,
Thanks in advance.
Greetings Maarten,
P.S. sorry for my pour englisch it is not my native language.(NL)