hey.. is it possible to make an onclick command that animates several subcomponents at once? I'm trying to make a folding door that opens both or all 4 of its doors in the same action, but cannot figure out a way to make this happen.
Is it possible to somehow refer to subcomponents in an onclick command written in the mother component?
@autoexec2000 it goes the other way. you refer to parent level component attributes when inputting attributes for the nested sub-components. e.g. at the parent level of your component (we'll call it "Door") set a custom attribute called DoorSwing and set onclick = animate(DoorSwing,0,90). then set the RotZ value for your nested sub-components as DOOR!DoorSwing (or DOOR!DoorsSwing +/- X). Then when you use the interact tool, the RotZ values should trickle down to the sub-components.
Is there any way to do 2 OnClick functions on a Dynamic Component consisting of two other components? I want one component to react when I click the first time & the second component to react with the second click. If I keep them seperate, they will not stay joined together.
there is a way to do that, yes. but tough to explain in 500 characters. you'd essentially need to set your on click function at the parent level. Clicking would drive a primary formula at that level which would then trickle down to the nested components, which had functions for position or rotation or whatever that were dependent on the on click values. this would be easier to chat about on our forums at go(dash)2(dash)school(dot)com
Of course, there is. In fact, Sketchup allows you to activate as many operations as you want with just one OnClick function. What you need to do is to separate those functions with semicolon(s). For example, you can set two cabinet doors to open at the same time to different opening angles, a drawer to be drawn out, an apple to fall off the counter etc... Just insert semicolons (";") between the command lines for each individual operation.
great video
akitchenappliances 6 months ago
cool vid keep it up
playerblaze600 7 months ago
youre cute!
johnguam 9 months ago
hey.. is it possible to make an onclick command that animates several subcomponents at once? I'm trying to make a folding door that opens both or all 4 of its doors in the same action, but cannot figure out a way to make this happen.
Is it possible to somehow refer to subcomponents in an onclick command written in the mother component?
autoexec2000 1 year ago
@autoexec2000 it goes the other way. you refer to parent level component attributes when inputting attributes for the nested sub-components. e.g. at the parent level of your component (we'll call it "Door") set a custom attribute called DoorSwing and set onclick = animate(DoorSwing,0,90). then set the RotZ value for your nested sub-components as DOOR!DoorSwing (or DOOR!DoorsSwing +/- X). Then when you use the interact tool, the RotZ values should trickle down to the sub-components.
4sketchupgo2school 1 year ago
How 'bout put some food in those cabinets and Fridge!
KINGFISHMB 1 year ago
Theyre called Radio Buttons...Not bread crumbs -_-
BMWxM3xGTR 2 years ago
He's talking about the navigation elements that take you back to the parent section of the website. They're called breadcrumbs. Look it up.
joesabido 2 years ago
lol
MONKFOCKER 1 year ago
28 minits ?, its impossible !
JirkaStanek555 2 years ago
Thanks you dude! So is there a rotate option?
Kossrifle 2 years ago
Is there any way to do 2 OnClick functions on a Dynamic Component consisting of two other components? I want one component to react when I click the first time & the second component to react with the second click. If I keep them seperate, they will not stay joined together.
benturtle 2 years ago
there is a way to do that, yes. but tough to explain in 500 characters. you'd essentially need to set your on click function at the parent level. Clicking would drive a primary formula at that level which would then trickle down to the nested components, which had functions for position or rotation or whatever that were dependent on the on click values. this would be easier to chat about on our forums at go(dash)2(dash)school(dot)com
4sketchupgo2school 2 years ago
@benturtle
Of course, there is. In fact, Sketchup allows you to activate as many operations as you want with just one OnClick function. What you need to do is to separate those functions with semicolon(s). For example, you can set two cabinet doors to open at the same time to different opening angles, a drawer to be drawn out, an apple to fall off the counter etc... Just insert semicolons (";") between the command lines for each individual operation.
tommychu2k 1 year ago
Hey is sketch up pro free?
blazpecnik 2 years ago
sketchup Pro . . . I don't know but Sketch up 7 is free xD
angelsantana007 2 years ago
unfortunately not
nfinnnn 2 years ago
Omfg I r first giv me award.
This was a good lesson :D
Vertman3000 2 years ago