I’m pretty new to sketchup… so apologies for any poor use of lingo.
I’m attempting to animate a transferring wall and it’s door in a home. I would like the wall and the door to maneuver to a brand new location when the wall is clicked, and I would like 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 must get a strategy to tie the door to the wall! Any ideas could be superior.
The onclick formulation needs to be set on the (youngster) degree, if you would like management a number of actions within the guardian degree, you’ll be able to seperate them with ‘;’
Verify this instance:
1 Like
Superior, thanks for the tip. I’ll attempt it tonight.
So I’m attempting to know the (youngster) degree and I’m not greedy what must be executed.
The instance you supplied 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 purpose a bit higher.
Here’s a screencap of my small dwelling that I’m designing and attempting to be taught 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 throughout the Bed room Wall Part 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 throughout 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, youngster, guardian, animate, and so on) however nothing helpful comes up in any respect.
Any pointers could be significantly appreciated.
For those who hover over the primary element, animate will carry out the best degree (bed room wall)
It overrides those beneath (door)
So, you should 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 attempting to assist me Mike, I perceive most of what you say however you lose me while 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 while you consider the wall as the large 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) decreased the file with 10 MB or so:
Desert Home.skp (244.4 KB)
Thanks a bunch for doing this.
There’s some odd behaviour occurring with the 2 parts, however I’m fairly certain I can work by way of it.
Time to maneuver on and begin including extra parts/particulars to this…
Normally, 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 underneath the hood)
Most frequently, beginning over is faster then attempting to sort things.
There needs to be a easy answer for this. I’m attempting 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 would like. I don’t see a method in Home windows model to vary the axis of rotation placement. How do I repair this?