Skip navigation
Currently Being Moderated

SDK 5,5.5,6 bug: exporter param .hidden

May 18, 2012 12:03 PM

Tags: #cs5 #cs5.5 #export #cs6 #ame #.hidden #.disabled #exporter_api #parameter_ui

fyi,

I found a bug with the SDK that doesn't seem to be fixed from (at least back to) SDK 5 thru 6.

 

If you change a parameter to hidden and then unhide it, the gui item doesn't return to it's original location - in fact most the time it pops to the top of the group.

 

eg

 

     I'm a string: blah blah

     I'm a slider: -------------+--------------- 45

     I'm an int:   [dropbox value 1]

 

now if you do exMyParamSlider.hidden = kPrTrue and save it back it will disappear as expected.

 

     I'm a string: blah blah

     I'm an int: [dropbox value 1]

 

But if you now turn it back on  (exMyParamSlider.hidden = kPrFlase) it will most likely be at the top...

 

     I'm a slider: -------------+--------------- 45

     I'm a string: blah blah

     I'm an int: [dropbox value 1]

 

I hacked around it for the last year by using .disable instead but it sure would be nice to be able to hide it and have it reliably come back to the same location.

I need to support CS5, CS5.5 so I'll stick with this hack but if I make a CS6 onwards plugin it would be nice to be able to rely on it doing the right thing.

 

Rallymax.

 
Replies
  • Currently Being Moderated
    May 18, 2012 12:23 PM   in reply to Rallymax-forum

    Hi Rallymax,

     

    In exSDKValidateParamChanged(), after you hide or show the parameter group using exportParamSuite->ChangeParam(), trying adding this code:

     

        validateParamChangedRecP->rebuildAllParams = kPrTrue;

     

    With just this small addition to your code, the parameter should be shown in the correct position.

     

    You're not the first to hit this behavior, and I'll try to make the rebuildAllParams flag more clear the SDK documentation.

     

    Zac

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points