I was talking with Eugenie about her new collections. She needed to
change an object based on a measurement. Her bodice would have one or
two darts depending on the bust size. What is the best way to accomplish
this?
After thinking about it I recommended creating two object,
the first with one dart, the second with two then use a code point to
hide either object. This is an advanced technique most people don't know
about. Let me explain the concept.
I've created a project with one measurement and two objects. The measurement is Height. The first object, Rectangle, is 10 width and Height tall. The second object, House , adds a 5th point that makes the it look like a house. You can download this project: HideObjectOnMeasure-Start.mg4 (8.2 KB)
If Height is greater than 5 I want to display the house
otherwise I want to display the rectangle. I do this by adding a code
point (Point->Code). I name it HideObject but the name doesn’t matter since I’m not going to refer to it. For the code I enter
if ( @Measure[Height].Value > 5 )
@Object[Rectangle].Hide = 1;
else
@Object[House].Hide = 1;
The Hide accessor hides an object if true, ie 1.
It defaults to 0.Here is the final project: HideObjectOnMeasure-Done.mg4 (8.6 KB)
Hi Gary, with help of the example I understand the stuff. Otherwise I would be lost. Wonderfull. I hope, you enlarge the examples.
lg
heidi
I plan to continue to expand all examples. Ask questions on things you
want help with. Answering questions help me know what people are having
trouble with.