pailhead Posted May 11, 2010 Share Posted May 11, 2010 Was there a script that created an effect of randomly open/closed blinds frome simple plane objects. I have found a script called "blinds" but it only creates a single smart object. Link to comment Share on other sites More sharing options...
BrianKitts Posted May 11, 2010 Share Posted May 11, 2010 (edited) if it's just a simple shade.... I typically draw a single spline inside my windows for blinds, and add a negative extrusion on all the splines. Make sure they're all copies not instances, then select your splines and run the following script to randomize the extrusion lengths for o in $ do o.modifiers[#extrude].amount = random 0 -140 Edited May 11, 2010 by BrianKitts Link to comment Share on other sites More sharing options...
Crazy Homeless Guy Posted May 12, 2010 Share Posted May 12, 2010 There you go with your fancy scripting again. Dusan, Not sure if this is the one you have, but I used this one a few years ago for a project. http://www.jonseagull.com/downloads.shtml#blinds Link to comment Share on other sites More sharing options...
pailhead Posted May 12, 2010 Author Share Posted May 12, 2010 (edited) I cracked the case J. Seagull script is the one i found now, which creates one smart object. The "fassaden blinds" is the one i was probably thinking of, but i forgot it was that simple. The idea of randomly extruding seems quite awesome, i have to learn scripting. Still, ill have to draw all the lines, if there isn't an easy script way of selecting just the top edge of a bunch of quads in a single object. *edit* So many people from SF Edited May 12, 2010 by pailhead Link to comment Share on other sites More sharing options...
BrianKitts Posted May 12, 2010 Share Posted May 12, 2010 There you go with your fancy scripting again. its the healthiest of my addictions...... Link to comment Share on other sites More sharing options...
pailhead Posted May 24, 2010 Author Share Posted May 24, 2010 What does this mean? -- Unknown property: "amount" in undefined Link to comment Share on other sites More sharing options...
pailhead Posted May 24, 2010 Author Share Posted May 24, 2010 I drew a bunch of lines. Added extrude modifier to them, and then run the script line, but all it does is it takes a random number from 0 to -140 and applies it to the selection. Link to comment Share on other sites More sharing options...
BrianKitts Posted May 24, 2010 Share Posted May 24, 2010 yup.... that's pretty much it, as I mentioned in the first post, if you'e just looking for a simple pulldown shade..... Link to comment Share on other sites More sharing options...
pailhead Posted May 24, 2010 Author Share Posted May 24, 2010 But it applies the same number to the entire selection. I don't have time to learn max script now but i would like to test this feature in this render. I took a look at the reference but i cant figure it out. Am i using your line wrong, or it needs something else? Link to comment Share on other sites More sharing options...
BrianKitts Posted May 24, 2010 Share Posted May 24, 2010 Nope you're doing it right, you just skipped my previous comment that they have to be copies. If they are all the same after you run the script that means that you instanced instead of copied the splines. (They all need to be unique). select them all and either click on the make unique button in the modify panel. (select yes on the unique with respect to each other? pop-up)..... or, right click in the viewport and select "convert to editable spline" to break the instancing. Then run the script. Link to comment Share on other sites More sharing options...
pailhead Posted May 25, 2010 Author Share Posted May 25, 2010 ahhh, they are not instances, but i may have added the extrude on top of all of them, so that particular modifier is instanced, even though the lines are separate objects. I'm not really sure how to add a modifier to a selection without it being instanced. Could this step be added as another line of script? Works flawlessly when they are all different. Link to comment Share on other sites More sharing options...
jinsley Posted October 20, 2010 Share Posted October 20, 2010 ... For o in $ do o.modifiers[#extrude].amount = random 0 -140 thank you sir. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now