Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, everyone.
Wondering if someone can help me generate a lisp code to add scales to the annotative scale list (using the -scaleListEdit command) by iterating through a list as the one below:
(setq myScaleList (list "scaleName1" "1:1" "scaleName2" "1:5"
"scaleName3" "1:10" ) )
The -scaleListEdit command asks for the name and then the ratio of the scale, so I don't think the foreach function would help me there. I though of using the mapcar function, but is seems to returns a list (I haven't used that function before, so can't be sure)...
I would prefer to stick to a single list, as shown on the sample code above. Perhaps another option would be a single list of multiple lists, like so:
(setq myScaleList (list (list "scaleName1" "1:1") (list "scaleName2" "1:5")
(list "scaleName3" "1:10") ) )
Any help or guidance would be appreciated!
Solved! Go to Solution.