
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm currently working through Wassim Jabi's Parametric Design for Architecture and I've gotten to a tutorial on creating a parametric diagrid in 3DSMax (MAXScript). The tutorial has you create a Scripted Primitive plugin to generate a diagrid with controlable u and v values.
The issue is that when I start to draw the rectangle that will create the grid in 3DSMax, I get the following warning:
-- Incompatible types: 5, and undefined
I've wittled it down to being an issue with the following parameter section by changing the U default: value and running it again for it to return the same error with the new value.
parameters main rollout:params
(
u type:#integer ui:u_spinner default:5
v type:#integer ui:v_spinner default:5
meshLength type:#worldunits ui:meshLength_spinner default:50
meshWidth type:#worldunits ui:meshWidth_spinner default:50
rotated type:#boolean ui:rotated_checkbox default:false
)
I've typed the script out exactly as it says in the book so I'm not sure what could be going wrong, unless MAXScript has changed in some way since the book was published (2013).
I'd be grateful for any help or advice.
Solved! Go to Solution.