I’m pretty new to sketchup… so apologies for any poor use of lingo.
I’m making an attempt to animate a transferring wall and it’s door in a home. I need the wall and the door to maneuver to a brand new location when the wall is clicked, and I need the door to open when the door is clicked at each doable areas of the door. Is that this doable?
I’ve managed to get the wall and door animating correctly on their very own, simply have to get a option to tie the door to the wall! Any ideas could be superior.
The onclick formulation must be set on the (baby) degree, if you’d like management a number of actions within the guardian degree, you possibly can seperate them with ‘;’
Examine this instance:
1 Like
Superior, thanks for the tip. I’ll strive it tonight.
So I’m making an attempt to know the (baby) degree and I’m not greedy what must be completed.
The instance you offered is for a sequence of animation and my mind isn’t ready to determine how the coding is relevant to my scenario. Let me attempt to clarify my objective a bit higher.
Here’s a screencap of my small dwelling that I’m designing and making an attempt to study sketchup with:
Word how I’ve the Bed room Wall element, inside that’s the Door and Bed room closet. I’m envisioning the murphy mattress swinging up, the Bed room Wall element sliding over and making the lounge space bigger. I’d like to have the ability to click on the pocket door inside the Bed room Wall Element and have it open and shut as properly additionally having it transfer together with the wall because it animates.
The animation code for the pocket door works on the opposite door that I’ve within the mannequin, however inside the bed room wall element I’m unable to click on on the door inside it as a separate merchandise to set off the door solely animation.
I’ve googled like loopy for assistance on this (dynamic, baby, guardian, animate, and so on) however nothing helpful comes up in any respect.
Any pointers could be tremendously appreciated.
Should you hover over the primary element, animate will carry out the best degree (bed room wall)
It overrides those under (door)
So, you need to flatten the organisation of the three, don’t indent by absorbing the door and closet into the wall, depart them seperate, or mix them in a brand new element (eg bed room) and don’t add an onclick attribute to that element, solely within the three.
Pls add the file for a few of us can examine additional…
Thanks for making an attempt to assist me Mike, I perceive most of what you say however you lose me whenever you say “and don’t add an onclick attribute to that element, solely within the three.”
Right here is the file: Dropbox – File Deleted
principally, do away with the onclick of the guardian and let the youngsters resolve:
So whenever you consider the wall as the massive sister of the door, inform the door to maneuver as properly when his sister is transferring:
ANIMATE(Y,198,238,300.5);ANIMATE(DOOR!Y,198,238,300.5)
btw, purging the file (Window->Mannequin Information-Statistics->Purge Unused) diminished the file with 10 MB or so:
Desert Home.skp (244.4 KB)
Thanks a bunch for doing this.
There’s some odd behaviour happening with the 2 parts, however I’m fairly certain I can work via it.
Time to maneuver on and begin including extra parts/particulars to this…
Typically, when working with DC’s and testing, purging eliminates element definitions and so on. and whereas at it, I all the time click on the ‘repair issues’ as properly. This helps to do away with free ID’s (every object has an distinctive identifier beneath the hood)
Most frequently, beginning over is faster then making an attempt to sort things.
There must be a easy resolution for this. I’m making an attempt to animate a cupboard door swing which has a latch element embedded in its group. The latch makes the door deeper than simply the wooden of the door alone. If I animate with out the latch, it rotates as wanted on the wooden edge. After I add the latch, the group rotates on the sting group (offset from the wooden edge) and never what I need. I don’t see a means in Home windows model to alter the axis of rotation placement. How do I repair this?
The straightforward factor is to make the thing a element and set the elements origin on the desired middle of rotation throughout it’s creation or proper click on on the element and select Change Axes. Should you open the group for enhancing you possibly can transfer the group’s axes.
That occurs as a result of whenever you group two parts, the origin is by default placed on the underside entrance left nook of the brand new group or element, that may be fastened like Dave instructed, creating a brand new element or enhancing the origin of the element you have already got.