View Full Version : Modify panel accessing
Rivendale 10-01-2004, 05:58 AM 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
|
|
externe
10-01-2004, 07:18 AM
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
2) If you want to select a mode you use
setCommandPanelTaskMode mode:#modify
3) If you want to know where subobject level is selected you simply do :
lev = subobjectLevel
print lev
-- output 0 or 1 or 2...
4) Know to choose the subojectlevel simply select your object and set the sublevel like that :
select $Box01
lev = 4
subobjectLevel = lev
Rivendale
10-01-2004, 07:47 AM
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
externe
10-01-2004, 07:58 AM
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
:)
CGTalk Moderation
01-19-2006, 11:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.