Notifications
Clear all

[Closed] Modify panel accessing

Hey, is it possible to acces the modify panel while running a script without it being visually “accessed”? I need to do some thing like shrinkselection and it only works with the right subobjectlevel open as far as I know.

CML

3 Replies

Hello,

  1. If you want to test the where are the right panel you can use :
    getCommandPanelTaskMode()

tmp = getCommandPanelTaskMode() 
print tmp
-- ouput #create
-- or ouput #modify
-- or ouput #hierarchy
-- or ouput #motion
-- or ouput # display
-- or ouput #utility

  1. If you want to select a mode you use

setCommandPanelTaskMode mode:#modify

  1. If you want to know where subobject level is selected you simply do :

lev = subobjectLevel 
print lev
-- output 0 or 1 or 2...

  1. Know to choose the subojectlevel simply select your object and set the sublevel like that :

select $Box01 
lev = 4
subobjectLevel = lev

externe- Thanks that’s good to know but that’s not what I meant. I mean that while the script is running the subobjectlevel changes, and when that happens the modify panel shows the switching between the levels. I’m wondering if there’s a way to hide that switching visually.
Or maybe there’s a way to do things like shrinkselection in subobjectlevels without actually going into subobjectlevel?

CML

Ah… Ok… As usually, I read 1 line on 10… And like your question has 3 lines…

Well I don’t know if it’s possible…

But once again, I can reply something you doesn’t need :


cui.commandPanelOpen = false 
-- disable the view of the main panel on the right