section plane in page

section plane in page

Postby artmusicstudio » Sat Feb 06, 2021 1:22 pm

hello,
i studied the api, but cannot find a way to

retrieve the active section plane of a page

without making the page an active page (means only by iteration thru pages and getting the corresponding section-plane).

is that possible?

thanx a lot for helping !
stan
0
User avatar
artmusicstudio 
PluginStore Author
PluginStore Author
 

Re: section plane in page

Postby TIG » Sat Feb 06, 2021 3:38 pm

A page does not 'have' the active_section_plane.
That belongs to the model.active_entities as .active_section_plane
So you do need to make the page [scene] in question model.pages.selected_page= and then check the active section-plane details in the model.active_entities ...
1
TIG
User avatar
TIG 
Global Moderator
 

Re: section plane in page

Postby artmusicstudio » Sat Feb 06, 2021 4:38 pm

TIG wrote:A page does not 'have' the active_section_plane.
That belongs to the model.active_entities as .active_section_plane
So you do need to make the page [scene] in question model.pages.selected_page= and then check the active section-plane details in the model.active_entities ...


HI TIG,

yes, thanx a lot, i am at this point, too, i think,
and i could iterate thru all pages (make the active one after another), with view.refresh off, maybe,

i just was hoping, that there is a hidden property for an active section.

so the conclusion is:

the page (scene) stores the active section - but there is no way to retrieve it directly by api at the moment :-)

thanx a lot again :-)
stan
0
User avatar
artmusicstudio 
PluginStore Author
PluginStore Author
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Developers' Forum

Who is online

Users browsing this forum: sunsett and 11 guests

Visit our sponsors: