Notifications
Clear all

[Closed] Two questions about RenderElementMgr

here i go:

  1.
  Wish i could search a desired Render Element by its name or its integer value to delete without using

      
   <aaa>.removeAllRenderElements()
      
   
  [research]( http://forums.cgsociety.org/showpost.php?p=1522434&postcount=3) 
  
  2.
 Someone knows how to open the RenderElement tab using the [i]TabbedDialogs [/i]method ? 
 i didn´t understand how it works...

      
  tabbedDialogSpec ::= ( #[b][b]render[/b][/b] | #[b][b]renderVP[/b][/b] | #[b][b]envEffects[/b][/b] | #[b][b]objProp[/b][/b] | #[b][b]preferences[/b][/b] | #[b][b]configPath[/b][/b] |  #(<int>,<int>) )
  [i]#(<int>,<int>) is Class_ID of tabbed dialog[/i][i]
  tabPageSpec ::=  ( <int> | #(<int>,<int>) )
  <int> is  index in dialog (1-based)
  #(<int>,<int>) is Class_ID of tab page[/i]
 
 <bool>tabbedDialogs.[b][b]isOpen[/b][/b]  <tabbedDialogSpec>[i]
 Returns  [b][b]true[/b][/b] if the specified dialog is open.[/i]
 
 <#(<int>,<int>)> tabbedDialogs.[b][b]getDialogID[/b][/b]  <tabbedDialogSpec>[i]
    Returns Class_ID of  specified tabbed dialog[/i]
    
    <#(<int>,<int>)>tabbedDialogs.[b][b]getCurrentPage[/b][/b]  <tabbedDialogSpec>
     [i]Returns Class_ID of  current tab page[/i]
    
    tabbedDialogs.[b][b]getPageTitle[/b][/b]  <tabbedDialogSpec> <tabPageSpec>
     [i]Returns the tab  title for the specified tab page. This title is localized.[/i]
     
     [color=green]--Switch to Adv.Lighting tab if Render Scene dialog is open[/color]
     [color=blue]if[/color] tabbedDialogs.isOpen  #render [color=blue]do[/color]
     (
       tabbedDialogs.setCurrentPage #render #(1758358594, 1812881699)
     )
     
      
 thank you very much,
 any help would be appreciated.
1 Reply

#2


 if not tabbedDialogs.isOpen #render do renderSceneDialog.open() 
  (
  	act = off
  	for i=1 to tabbedDialogs.getNumPages #render while not act where (tabbedDialogs.getPageTitle #render i) == "Render Elements" do
  	(
  		act = on
  		tabbedDialogs.setCurrentPage #render i
  	)
  )