Hi;
I was wondering of it is possible to create a PPG button with an Icon on them instead of text. The icon buttons that one can create using AddenumControl and siControlIconList function in a boolean manner, ie you can only click them once and they're only reset when you press another one in its group. I remember seeing a button with a bitmap on it instead of text once, but I might be mistaken. Is this above Js, VB or Py, like in the neighborhood of C++?
Cheers;
AJ
Buttons with Bitmaps
- csaez
- Posts: 253
- Joined: 09 Jul 2012, 15:31
- Skype: csaezmargotta
- Location: Sydney, Australia
- Contact:
Re: Buttons with Bitmaps
Hi,
You can hack it by using a synoptic instead of a button and changing the synoptic filepath at runtime... work with the native gui is a pain! pyqt (or pyside) is a much better framework.
Cheers!
You can hack it by using a synoptic instead of a button and changing the synoptic filepath at runtime... work with the native gui is a pain! pyqt (or pyside) is a much better framework.
Cheers!
Re: Buttons with Bitmaps
Wow, that sounds neat. Could you give a small example, if you can? I'd really appreciate it.
Thanx for the reply;
AJ
Thanx for the reply;
AJ
Re: Buttons with Bitmaps
Ok, I got what you meant with the Synoptic. Tested a little, and yeah it's very much doable, thank you for the advice.
I'm also wondering (couldn't find any relevant info in the SDK docs) how it is possible to go ahead and change the Font size, boldness on regular PPG buttons. How can one control that through SetAttribute?
Thanx again.
Cheers;
AJ
I'm also wondering (couldn't find any relevant info in the SDK docs) how it is possible to go ahead and change the Font size, boldness on regular PPG buttons. How can one control that through SetAttribute?
Thanx again.
Cheers;
AJ
- csaez
- Posts: 253
- Joined: 09 Jul 2012, 15:31
- Skype: csaezmargotta
- Location: Sydney, Australia
- Contact:
Re: Buttons with Bitmaps
AFAIK, it's 'locked' to the softimage look&feel, you can't customize the style.
Cheers!
Cheers!
Re: Buttons with Bitmaps
Ouch!! That sucks big time I agree with you on the point that GUI design and practicality is one of the most under-documented and neglected part of the SI SDK (compared to say, Maya)csaez wrote:AFAIK, it's 'locked' to the softimage look&feel, you can't customize the style.
Cheers!
Cheers;
AJ
-
- Posts: 151
- Joined: 30 Nov 2010, 19:56
- Location: Tennessee
- Contact:
Re: Buttons with Bitmaps
Are you able to use PyQt instead? Does this have to be done using the standard Softimage PPG?
- Daniel Brassard
- Posts: 878
- Joined: 18 Mar 2010, 23:38
- Location: St. Thomas, Ontario
- Contact:
Re: Buttons with Bitmaps
Alok tutorials:
Part 1
http://alokgandhi.com/blog/2011/04/05/m ... pg-pretty/
Part 2
http://alokgandhi.com/blog/2011/04/11/m ... y-part-02/
Part 1
http://alokgandhi.com/blog/2011/04/05/m ... pg-pretty/
Part 2
http://alokgandhi.com/blog/2011/04/11/m ... y-part-02/
$ifndef "Softimage"
set "Softimage" "true"
$endif
set "Softimage" "true"
$endif
Who is online
Users browsing this forum: No registered users and 45 guests