how to execute multiple commands

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Search this Thread Display Modes
  10 October 2005
how to execute multiple commands

Hey all,

I'd like to execute multiple commands with a button in a window. But I don't want to use a procedure. Is there a way that you can for example create a sphere and move it -a 0 5 0 all in the one go without having to make a seperate procedure for it?

This is all I have so far:
button -label "something" -command "sphere"

but i'd like to add something like -command "shere" + "select -r sphere" + "move -a 0 0 0"
obviously.. that doesn't work.

Thanks heaps

  10 October 2005

 window -width 150;
 columnLayout -adjustableColumn true;
 button -label "Make Sphere" -command "sphere; move -a 10 10 10;";

Keep the commands in qoutes seperated by semi-colons.

  10 October 2005
if your goign to do a fair bit of work outside of a proc, especially if you'll start using variables, then its good form to incase those commands in braces so -c "{ ming; ling; ling; }", so they keep a local scope rather then broad castign into the global (and ****ign with other scripts!)
  10 October 2005
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 10:25 PM.

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