# Rubik's Cube

Author Name:
feilang

Hi, I like play Rubik's Cube and have wrote a script to play it in 3dsmax. Of course, it is far away from the real Rubik's Cube,  but this is free:D. Hope you liking it.

Version Requirement:
3dsmax8 and above
AttachmentSize
Play-Rubiks-Cube.zip69.96 KB

## Comment viewing options

### plugin for sketchup...

Hey man, this is exactly what I was looking for but for sketchup. Is it possible somehow to convert it for sketchup? Thanks!

### Michele71 , thanks!

Michele71 , thanks!

### Hi Nevil, thanks for you

Hi Nevil, thanks for you suggestions:)
1.The positions of cubes have been wrote to the script, this is the problem. In fact, the formula of X,Y,Z can not play on this Rubik's.
2. I don't know either, for animation, maybe you should create a new one.
3. en, good idea
4. haha, the tip on "Auto solve" had reminded this. The real solvation is too difficult to me with programming, than with my hands.

the algorithm of this script is not strict, it searched the cubes by positions to rotate. so ,after a lot of steps, the positions will offset the original positions.

PS: I can't visit BlogSpot.com in my area...what a pity!

### I love this game :)

I love this game :) Thanks!!!! One point to you ;)

### some little problems

Hi, you are created a great UI for it but still have some little problems

1.cube not working on transport (can solve by link all of entetys to a single object.)
2.cube is not Animatable ( I don`t know any solution for your algoritm yet )
3.Auto solve not working after reopen the script ( you can save the steps on file.)
4.auto sole is only a play back not real solvation.( no have idia for it )

your idea for prev and next step was good

at all good job thank you.
you can see mine on NevilArt.BlogSpot.com

### Hi,Martin To solve a rubik

Hi,Martin

To solve a rubik cube,the only skills are patience and persistence. There are tutorials on the net, you can search. Good luck.
For the script, the pos may be moved after many steps. So sometimes errors occur. You can modify "dis=100", this value controls which cubes to be rotated.

Regards,
Leo

### Hi,Tariq So, this script is

Hi,Tariq

So, this script is quite suitable for you, haha....

Leo

### sometime I got unknow

sometime I got unknow property pos in undefined at line 142
but other than that it very nice :-)

regard,
Martin

### I've never been able to

I've never been able to finish the real thing ...I think I'll try this one :-)

### Hi, I also love to solve

Hi,
I also love to solve rubik cube.
Thanks for the script.

Best Regard
Tariq Mughal