Author Topic: Action Menu to Change Shape  (Read 2146 times)

0 Members and 1 Guest are viewing this topic.

angelic.andy

  • Newbie
  • *
  • Posts: 3
Action Menu to Change Shape
« on: September 24, 2016, 09:50:07 AM »
Hi,

I am trying to design an Action Menu to allow me to change between 5 shapes using Shapesheet.

I am stuck at the moment.

I appreciate some advice.

Thank you in advance for your time.

Yacine

  • Hero Member
  • *****
  • Posts: 2715
Re: Action Menu to Change Shape
« Reply #1 on: September 24, 2016, 12:30:15 PM »
That's quite a vague problem.
Yacine

angelic.andy

  • Newbie
  • *
  • Posts: 3
Re: Action Menu to Change Shape
« Reply #2 on: September 24, 2016, 06:30:04 PM »
I am trying to create an action menu whereby I can change between 5 shapes.

triangle
square
pentagon
hexagon
heptagon

What I try to create:

1) right click on triangle
2) a menu pop up showing
     triangle
     square
     pentagon
     hexagon
     heptagon
     -------------------
     Show shapesheet
3) select square
4) triangle disappear. Square should appear. However, what I ended up with was both triangle and square remained. I need to right click on the shape again to select triangle to get it to disappear.

I am trying to use only the shapesheet to make it happen.

Please advise.

vojo

  • Hero Member
  • *****
  • Posts: 1550
Re: Action Menu to Change Shape
« Reply #3 on: September 24, 2016, 11:19:44 PM »
1:   All shapes in 1 group
2:   Actions at group level
        create user cell    "user.trigger"   value = 0
        for square action    setf(getf(user.trigger),1)
        for circle  action     setf(getf(user.trigger),2)
        etc.
3:  In each child shape, go to geometry noshow cell
        for square no show   if(<parent>!user.trigger <>1, true,false)
        for circle no show   if (<parent>!user.trigger <> 2, true, false)

You may want to debug by echo the user.trigger in group shape
insert ==> field==> user cells ==>user.trigger
remove when working.

See my attachment under the thread "same text in multiple shapes"
posted last day or so.

angelic.andy

  • Newbie
  • *
  • Posts: 3
Re: Action Menu to Change Shape
« Reply #4 on: September 26, 2016, 02:09:53 AM »
Thanks very much Vojo. It worked. :)