CGTalk > Software > 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
Peter Hunt
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:
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?


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
CGTalk Forum Leader
Join Date: Sep 2003
Posts: 1,066,478
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

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
Society of Digital Artists

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

All times are GMT. The time now is 01:37 PM.

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