CGTalk > Software Specific Forums > Autodesk Maya > Maya Programming
Login register
Thread Closed share thread « Previous Thread | Next Thread »  
 
Thread Tools Search this Thread Display Modes
Old 01-29-2013, 02:58 AM   #1
JustAnotherGuy
PRO
portfolio
Peter Hunt
Huddersfield,
 
Join Date: Jan 2013
Posts: 95
Trying a callback user interface and it needs text field

So yup, I kinda used this page
HTML Code:
http://www.luma-pictures.com/tools/pymel/docs/1.0/ui.html
to create a simple user interface (scroll down to the callback object part), although everything I've tried to actually add a text field doesn't seem to work.

I've cut it down to the basics to make it easier to read aha, the checkbox is fine not using that callback command but the button needs it, unfortunately it mentions nothing about radio buttons or text fields on the site

Does anyone know how to get any of those two working?

thanks

Code:
def buttonPressed(formInfo): (setting some variables using .getValue() and formInfo) (run the rest of the script) win = window(title="title") layout = columnLayout( rowSpacing = 10 ) win_createButton = button( label="button", command = Callback( buttonPressed, "cB" ) ) win_createCheckBox = checkBox( label = "check box", value=True ) showWindow()
 
Old 01-29-2013, 02:58 AM   #2
CGTalk Moderation
Lord of the posts
CGTalk Forum Leader
 
Join Date: Sep 2003
Posts: 1,066,481
Thread automatically closed

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.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 02:35 PM.


Powered by vBulletin
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.