Dynamic Blocks - Visibility Dependant

Dynamic Blocks - Visibility Dependant

Anonymous
Not applicable
919 Views
10 Replies
Message 1 of 11

Dynamic Blocks - Visibility Dependant

Anonymous
Not applicable

Hey All,

 

Something I cannot figure out.

 

Can we make a visibility in a DY-Block to be dependant to the other? What I mean?

 

See Block attached. It has 2 Visibilities. One changes the shape, the other changes the letter. We shall not have Circle-A for a reason so it is not included in all visibilities. You can have Square A or B or Circle B.

 

Issue:

 

You cannot Change the shape to a circle if letter is A. To do so, you must first change the letter, then change the shape.

 

What I want:

 

Make it possible to change the shape to a circle even if letter is A, but letter to change to B automatically. That's what I call being dependant.

 

You may notice there is a base point and a flip as well. I like to keep them in the block. Because in the real block which this concept is used in it, I must have a base point so it flips. If this is not possible, I will find a way around it. In another block, the existance of a base point out of 0,0 was creating issues.

 

For now, Please see if you can make Visibility of letters to be dependant on Visibility of shape.

 

I appreciate your help.

 

Cheers,

Behzad

0 Likes
Accepted solutions (2)
920 Views
10 Replies
Replies (10)
Message 2 of 11

Anonymous
Not applicable
Accepted solution

Hey,

 

I did not get response so I had to burn some grey cells in my brain.

 

What I did is in the "Bridge Lookup Visibilities", I added another row duplicating the Visibility of "Circle-B" and gave it output of "z". Then, in "Bridge Lookup P" I added the missing row of PX=1 PY=0, with out put of z.

 

Finally, in Visibility States of "Circle-B" I made the "Letter" lookup invisible.

 

Block works as desired.

 

Summary:

 

One visibility (Letter) is now dependent on the other (Shape) in the way that if "Shape" changes then "Letter" changes.

 

I am glad I found the solution and now i can fix a DY block I had and I share it in related topic.

 

I was let down by someone for some reason in the forum, and solving this problem helped me stand up again and be proud of what I do.

 

I hope this will be helpful for anyone who is trying Dynamic Blocks in Multi-Visibility area.

 

Cheers,

Behzad

0 Likes
Message 3 of 11

Anonymous
Not applicable

I forgot about the basepoint.

 

I cannot have a basepoint being flipped because the values of point parameter will change and that will mess up the function.

 

Cheers,

0 Likes
Message 4 of 11

Libbya
Mentor
Mentor

You can flip (or move) a basepoint parameter by inserting a chained point/move.  Within the move selection set include the basepoint parameter and all input parameters.  Any other actions you want to use to dynamically move/flip the basepoint then should include the chained point move in their selection set(s).  Do not include the basepoint or input parameters directly.

0 Likes
Message 5 of 11

Anonymous
Not applicable

Libbya,

 

I was about to reply and say it is too much for me to understand. Then I thought let me try. I followed your instruction and it worked even tho I don't understand it fully 😉

 

Thanks for the lesson 🙂

 

Edited: "I realized something is not working. I removed attached and I am working on it 😉 "

 

Cheers,

0 Likes
Message 6 of 11

Anonymous
Not applicable
Accepted solution

Its done.

 

I should include the Chaned Point Parameter AND the Move Action, both, in the Flip Action.

 

Thanks Again.

0 Likes
Message 7 of 11

Libbya
Mentor
Mentor

There is no need to add the move action to the flip selection set.  

 

I realize this is really a test block, but if it was a 'real' block I would do the following; turn off the point parameter grip, turn off the 'Shape' lookup for the 'Square-A' visibility state (with it visible, you can select Circle-A which does not exist), and I would not flip the two lookups (that just makes the selection confusing).  

0 Likes
Message 8 of 11

Anonymous
Not applicable

Thanks Libbya,

 

I know you are busy and I don't expect replies.

 

I turned off "The point parameter grip" in edited post. You were so quick in checking and saw the block before i picked that.

 

If I dont add the move action in Flip action, block does not swich to Circle when you change the letter to B.

 

For the part (Turning off the shape...) to be honest I don't underestand.

 

For flipping the lookups, please note that lookups which will look like visibility grip for user, have descriptions in them and by hovering on them you see which one is what. But I will think about it and will try it on the real block and may be better the way you say.

 

Thanks again.

 

0 Likes
Message 9 of 11

Anonymous
Not applicable

@Anonymous wrote:

Thanks Libbya,

 

I know you are busy and I don't expect replies.

 

I turned off "The point parameter grip" in edited post. You were so quick in checking and saw the block before i picked that.

 

If I dont add the move action in Flip action, block does not swich to Circle when you change the letter to B.

 

Sorry, I take my word back. it works. no need to add move action in flip action. there was confusions just because I flipped the lookups 😞

 

For the part (Turning off the shape...) to be honest I don't underestand.

 

For flipping the lookups, please note that lookups which will look like visibility grip for user, have descriptions in them and by hovering on them you see which one is what. But I will think about it and will try it on the real block and may be better the way you say.

 

Thanks again.

 


 

0 Likes
Message 10 of 11

Libbya
Mentor
Mentor

When you are in the Square-A visibility state you have both selection lookups visible (shape and letter).  If you use the Shape lookup to select circle, then the result should be Circle-A which is a visibility state that does not exist.  Instead, it switches to Circle-B despite no selection of the B letter.  It would be better, in my opinion, to make the Shape lookup invisible in the Square-A state.  With it invisible, it eliminates the issue as you cannot then change the shape to circle before switching to B.  

0 Likes
Message 11 of 11

Anonymous
Not applicable

Now I understand what you are saying. Sorry for a possible low IQ 😉

 

For the test block we have here I totally agree with you.

 

In the real block, The Shape Lookup is the main visibility that gives 2 important visibilities which should stay available. The other is a child and not important.

 

It is an Elevation Door Dynamic Block. You can switch between "Hinged Door" and "Pivot Door". The child visibility is for the handles and it is totally okay if it changes even when you change the door type. You will see it in "Door Dynamic Block Library" thread later. Your ideas will be appreciated.

 

Cheers,

0 Likes