Page 1 of 1

Moving groups

Posted: Wed Mar 17, 2010 12:54 pm
by bsouthuk
Does anyone know if there is a way a user can select a 'group' on a card and place the group anywhere they like on the card on a RunRev standalone application?

Is it a simple script?

Thanks

Daniel

Re: Moving groups

Posted: Wed Mar 17, 2010 1:21 pm
by Klaus
Hi Daniel,

just like any object! Put this into the script of the group:

Code: Select all

on mousedown
  grab me
end mousedown
That's it :)

Best

Klaus

Re: Moving groups

Posted: Wed Mar 17, 2010 1:36 pm
by bsouthuk
Christ - well thats pretty easy!

What would the script be if I wanted a button that when selected it placed the group back to it's original position?

Thanks Klaus

Dan

Re: Moving groups

Posted: Wed Mar 17, 2010 1:57 pm
by Klaus
Hi Dan,

Code: Select all

on mouseup
  set the loc of grp "Your group here" to X,Y
  ## Where X and Y are the original coordinates of the group
end mouseup
Again, much too easy :D

Best

Klaus