--Lego brick wall
shift = true
for z in 0 to 9 do
(
shift = not shift; -- why colon?
for x = 0 to 9 do (copy $Lego).pos = if shift then [40*x,0,20*z] else[20+ 40*x,0,20*z]
)
Maxscript, can any one explain this script to me (be very clear)
160 views Asked by Vamshi At
1
There are 1 answers
Related Questions in COPY
- What is correct way to copy struct instance with fields in Go?
- On paste StartFragment - EndFragment Postman issue
- Copy paste a single value from within a cell to another cell
- Char array, char pointer, works in one case but not the other?
- Macro to copy, rename and organize a template worksheet
- Stored procedure with copy statement keeps running when called
- How can creation times be preserved while copying on Mac?
- Automate buildozer with windows bat file and ubuntu script
- If Cell contains specific text in col A copy cell from Col C into Col F stacked
- Why do I have a 403 error when trying to save a website
- SSRS Report - Graph when exported is compressed into a graphic
- Need to copy multiple cells in the same row of data from one sheet to another when a Checkbox is checked
- Is there a way to set an open workbook as a source without having the file name?
- How do you deep copy a variant of pointers in C++?
- Python Copy dictionary
Related Questions in MAXSCRIPT
- MaxScript/Python for Detecting Stretched/Distorted UVs in 3ds Max
- Load a 3ds Max XRef Material without Object
- Start 3Ds Max from C# .NET application and then send commands to it
- is there a way to add a keyframe using the value of the controller's linear ORT in 3DSMax 2023 using MAXScript?
- .NET entering numbers into NumericUpDown isn't working
- Rename, Group Objects, Group groups
- How can I run IDTool in 3ds Max after installation of that IDTool?
- How can I make a tool like IDTool using Maxscript in 3Ds Max?
- I want to load a keras model in 3ds max and make it work
- Material parameter change callback in 3ds Max
- MaxScript : How to compress a file content with zip or maxzip
- I can not color a mesh in Max Creation Graph for 3ds max 2023
- How can I browse XML Files in the disk and copy it to another disk in MaxScript?
- makeDir name from a list of strings
- Maxscript outputfile name with integer variable error
Related Questions in LEGO-MINDSTORMS
- Why does my Spike Lego vehicle move only backwards, then stop?
- Counting lines with lego mindstorms ev3?
- nxt-python run two motors simultaneously
- Can't connect RFCOMM socket: Connection refused. GDBus.error:org.bluez.error.failed:Protocol not available
- How to drive two motors using LEGO TechnicHub by LEGO Wireless Protocol
- Looking for software/documentation to control LEGO train the same as standard DCC? (blunami)
- I can't install python libraries with sudo easy_install3 on ev3dev
- Lego Mindstorms - Server Client messaging between PC and Ev3
- Inconsistent behavior of pyserial and rshell when executed in a .py file
- How do I Stream Realtime Video to a Website
- I have a python module and want to call all constants
- How would I use an older (v1) version of the Hi Technic NXT Infrared Seeker v2 in ev3dev with micropython?
- Can you use events or interrupts with EV3 micropython?
- how can a light sensor be used to read colors, in particular red
- Intellisense in ev3 micropython not working
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Line by line, first you set a variable which controls whether you are shifting the row or not. Then for row index z from zero to ten you switch the shift from true to false and vice versa. The semicolon is optional and not really needed. That's the outer loop. In the inner for loop, for each column index x from zero to nine you create a copy of a scene node named Lego - this returns a the object itself, so you can directly set its position given by the mulitples of indices - and add a shift in x axis if the row number is even.
You can also use modulo check if the row index is even and instead of creating a copy of the object and setting its position afterwards do it in the constructor: