THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 11/11/2012 at 18:29, xxxxxxxx wrote:
All the ObjectData examples of the SDK use a .res file to create the GUI.
The RegisterObjectPlugin requires me to provide a description. But I want to code all the GUI using GeDialog. So, how can I create an ObjectData plugin with a GUI defined in code?
On 11/11/2012 at 19:02, xxxxxxxx wrote:
Oh, by the way, I want the GUI to appear on the Attribute Manager, not on a windows.
On 12/11/2012 at 00:59, xxxxxxxx wrote:
You can't use a GeDialog for an ObjectData plugin. They use descriptions, not dialogs, to appear in the attributes manager. I've never tried creating a description in code, I always use a resource, though I am sure it can be done. But, note that you cannot use the resource editor to create a description resource, you have to do it by hand. So in effect you are building it manually anyway.
On 12/11/2012 at 01:48, xxxxxxxx wrote:
I have been doing so, so far. But due to the limitations of the resource description, when compared to the possibilities allowed by the GeDialog methods, I was asking if it was possible to create a GUI in the Attribute Manager with GeDialog.
On 12/11/2012 at 03:38, xxxxxxxx wrote:
Unfortunately not. But what limitations are you finding? I've always thought that the descriptions were very powerful.
On 12/11/2012 at 03:44, xxxxxxxx wrote:
For example, I can't create a BITMAPBUTTON that adjusts automatically to the width of the panel.
Also, creating a dynamic GUI that can change over time is impossible.
On 12/11/2012 at 03:54, xxxxxxxx wrote:
True, regarding the bitmap button. You'd need to write your own custom gui (it can be done: if you have Vray you see there's a custom gui in the tags which does this).
But you can create a dynamic gui easily enough. You need to use GetDDescription() though, and IIRC this isn't implemented in Python (yet?).
On 12/11/2012 at 04:01, xxxxxxxx wrote:
I have been using the SDK and the BITMAPBUTTON is not even referenced in the SDK, in the description section
And I'm using python, so... this is a closed road for me.
If it is impossible to create Attribute Manager GUI with code and the only way to implement dynamically changeable GUI is through code, I can't create dynamically changeable GUI
On 12/11/2012 at 04:17, xxxxxxxx wrote:
Isn't it possible to have a USERAREA in the description .res file?
And, if possible, isn't it possible to make it span the whole width of the panel?
p.s. Of course, this is assuming that it is possible to assign bitmaps to the USERAREA, through code.
On 12/11/2012 at 04:19, xxxxxxxx wrote:
AFAIK, you can't have a user area in a description. I'd *love* to be wrong about this because it would make life so much easier. But I think this is correct.
It would be great if someone could write a custom gui to provide this functionality because it really is needed. Failing that a good example from Maxon on how to write a custom gui for descriptions would be very helpful.