PDA

View Full Version : creating a toggle button in my attributes


anthonymcgrath
01-20-2003, 11:25 AM
I'm creating sliders n things to control various aspects of my character, but I'd love to create a toggle button above my char that I click to pull up the blendshape window and click again to close it. can anyone tell me how to do this. its probably really muppet easy but thats me!!!

ta

ant
newc
uk

dwalden74
01-20-2003, 11:43 AM
How about this:

open command: BlendShapeEditor;

close command: deleteUI blendShapePanel1Window;

U could check for the existance of the panel, and if itīs already there, then close it, if not open it!

:beer:
David

ps: not sure if U can have multiple blend shape windows open. Tried it but didnīt work. Thatīs why I left the name as is...

anthonymcgrath
01-20-2003, 11:51 AM
cool, thats great but how do I put it into my locator as an attribute. it just by default becomes a slider?

dwalden74
01-20-2003, 12:59 PM
Ahh, you want to attach it to a locator? I thought you meant as a button in some kind of UI... So, if understand correct: You want to have a locator in the scene, and when you select it the blend shape editor opens, right? Sounds like you need a scriptJob. Look in the MEL docs for info about this (gottaībuzz now, sorry!)

:beer: ī
David

CGTalk Moderation
01-14-2006, 05:00 AM
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.