OK, nevermind - after sleeping on it I realized that I had read in the forum somewhere that a grandparent cannot take on the attributes of a grandchild, that the parent has to make a bridge between the two. When I created my "swatch" component, it because a grandchild of my dynamic component. Today I built the bridge, put the material info on the swatch (grandchild) level, referencing the swatch material in my parent level and referencing my parent material at the grandparent level - it works like a charm!!!
Latest posts made by CharlieGirl
-
RE: Material in the model - dumb newbie question - help!
-
Material in the model - dumb newbie question - help!
I have been really struggling with this and just cannot figure out what I am doing wrong. I have set up a dynamic component to click through material colors on a click. I created a swatch with the colors as directed in the tutorial, made it a component and used the outliner tool to make sure it was connected. But it is acting like I have no materials in my model. I get the message "#=Material not in model:" and then the message scrolls through my materials as I click.
I tried searching on the error message and on anyone having trouble getting their colors or materials to "stick" to their component, but I feel like an idiot because it seems I am the only one with this problem. So I am finally giving up and asking for help. Any suggestions?
-
RE: Nested IF in a SET Function - what am I doing wrong?
Thank you! Your example code showed me that I should separate the material selection from the on-click function - I was trying to do too much at one time. I now have the nested IF for the material selection and the SET function is changing the color shade. That, plus for some reason it seems that I need to have a space between the front and back quote marks and the material names, seems to have fixed the issue. I really appreciate you revisiting my problem for me. Thank you again.
-
RE: Nested IF in a SET Function - what am I doing wrong?
Yes, you understand the desire perfectly. Thank you so much for your help! I'll look at what you created and compare it to mine to find the error. I really appreciate the time you have spent to help me out. I'll report back what I find (I'm sure I screwed something up!).
-
RE: Nested IF in a SET Function - what am I doing wrong?
Thank you very much. I have attached my wall dynamic component.
What I am trying to make happen is this:
-
The user selects a siding type in the Component Options dialog box, brick, stucco, etc.
-
The user interacts with the component by clicking on the wall and the wall cycles through the appropriate swatches to display the siding type as either light, medium, or dark.
I have the swatches attached to the component and it works when I cycle through only one type, but when I nest my If statement, it stops working.
I really appreciate you taking another look at this!
-
-
RE: Nested IF in a SET Function - what am I doing wrong?
220 people so far have read this, but no one has replied. Does anyone have ANY ideas about this? I really appreciate any help with it. Are there Google SketchUp programmers that watch this forum? Do I need to contact Google directly? Help!
-
Nested IF in a SET Function - What am I doing wrong?
(I posted this in the Materials group and am not receiving any replies. I thought it might actually be more suited to the DC group. Mea Culpa if duplicate posts are not allowed.)
Hi everyone. I'm pretty new to SketchUp so I apologize in advance if this is a dumb or repeat question. I did search pretty much all day and have not found the answer yet, so I'm hoping someone can help me. Here is what I am doing. I have created a dynamic component that is a wall with various types and colors of cladding. I have created my "swatch" of colors/textures and I have attached it to my wall. I bundled the wall and swatch as a component. I have a user input drop-down at the parent level which asks the user if they want siding, brick veneer, stone veneer, or stucco. Each response has a value, 1-4. At the "Wall" child level I have an "onClick" Behavior that should allow the user to click through the various looks and shades for each of the cladding types based on their answer from the drop-down. To do this, I used the SET function but then nested IF statements within. It is going to the correct part of the SET function, but instead of cycling through the types of materials, it is trying to find a material with the name of the entire set. Here is a small example of what I am doing and how SU is responding: SET("Material",(IF(AG Wall!Ext_Cladding=1,("Siding_Light","Siding_Color_Med","Siding_Tan_Med","Siding_Dark"),IF(AG Wall!Ext_Cladding=2,("Brick_Light","Brick_Tan_Medium","Brick_Medium","Brick_Dark"),IF(AG Wall!Ext_Cladding=3,("sketch-stone_Light","Stone_Med","dark-sketch-stone"),("Stucco_Light","Stucco_Med","Stucco_Dark")))))) When, for instance, my user selects "Stucco", this is resolved to "4" but the "Material" Behavior displays Stucco_Light","Stucco_Med","Stucco_Dark just like that, without the beginning and ending double-quotes. So I know it is getting to the correct place, but why doesn't it read the list as a list and click through the options? I appreciate any help!
-
Nested IF in a SET Function - what am I doing wrong?
Hi everyone. I'm pretty new to SketchUp so I apologize in advance if this is a dumb or repeat question. I did search pretty much all day and have not found the answer yet, so I'm hoping someone can help me. Here is what I am doing. I have created a dynamic component that is a wall with various types and colors of cladding. I have created my "swatch" of colors/textures and I have attached it to my wall. I bundled the wall and swatch as a component. I have a user input drop-down at the parent level which asks the user if they want siding, brick veneer, stone veneer, or stucco. Each response has a value, 1-4. At the "Wall" child level I have an "onClick" Behavior that should allow the user to click through the various looks and shades for each of the cladding types based on their answer from the drop-down. To do this, I used the SET function but then nested IF statements within. It is going to the correct part of the SET function, but instead of cycling through the types of materials, it is trying to find a material with the name of the entire set. Here is a small example of what I am doing and how SU is responding: SET("Material",(IF(AG Wall!Ext_Cladding=1,("Siding_Light","Siding_Color_Med","Siding_Tan_Med","Siding_Dark"),IF(AG Wall!Ext_Cladding=2,("Brick_Light","Brick_Tan_Medium","Brick_Medium","Brick_Dark"),IF(AG Wall!Ext_Cladding=3,("sketch-stone_Light","Stone_Med","dark-sketch-stone"),("Stucco_Light","Stucco_Med","Stucco_Dark")))))) When, for instance, my user selects "Stucco", this is resolved to "4" but the "Material" Behavior displays Stucco_Light","Stucco_Med","Stucco_Dark just like that, without the beginning and ending double-quotes. So I know it is getting to the correct place, but why doesn't it read the list as a list and click through the options? I appreciate any help!