mng1986 Posted March 17, 2020 Share Posted March 17, 2020 Hello everyone, I'm beginner in Marionette and It is my very first topic. I'm creating a parametric table and I have some questions: 1) How to set minimum and maximum values for distances (height, depth and width)? 2) The table has two texture parameters. Depending on what material I choose to the board, it changes the legs as well, to another random material. Why am I doing wrong? 3) Is it possible to set a fixed material? For example, keep material for legs always as Stainless Steel that users can not change - similar as we have with Revit Family Type parameters. Here is some pictures to get an idea of my questions: Quote Link to comment
Grzegorz Krzemien Posted March 18, 2020 Share Posted March 18, 2020 @mng1986 Could you upload a file? It would be much easier to check some things. Answers: 1. As I know you can't set min/max values directly. What you can do is a) change/build from scratch new REAL node and add min/max values into the script. b) add set of nodes that check if given value is different than desired. E.g. VALUE connect to CONDITION (greater than), if no run script, if yes - ALERT DIALOG that activates info about wrong value. 2. Could you set a file to check this. 3. I think yes. Try to remove node's Name. E.g. for "Get Texture" node delete "Name" (LegsTexture) in OIP. Then it would not appear in OIP of Marionette Object. Quote Link to comment
mng1986 Posted March 18, 2020 Author Share Posted March 18, 2020 1 hour ago, GRZEGORZ said: @mng1986 Could you upload a file? It would be much easier to check some things. Thanks GRZEGORZ for fast reply. Here you find attached file. ParametricTable.vwx Quote Link to comment
Grzegorz Krzemien Posted March 18, 2020 Share Posted March 18, 2020 @mng1986 Try this one. One table is yours, works fine for me. Second table is with "fixed" leg texture. You can not change leg texture without editing script. Bonus: Made new "Real" node. The work like this: in OIP define "min" and "max" value. If "real" value extends min/max value it changes to min/max value. E.g. real = 150, min = 20, max = 100 if you run the node it will generate 100 (real value is bigger than max, so it sets real to 100) real = 5, min = 20, max = 100 if you run the node it will generate 20 (real value is smaller than min, so it sets real to 20) real = 50, min = 20, max = 100 if you run the node it will generate 50 (real value is between min (20) and max (100), so it remains the same) Hope this is what you had in mind. ParametricTable_GK.vwx 1 Quote Link to comment
mng1986 Posted March 18, 2020 Author Share Posted March 18, 2020 Thanks so much GRZEGORZ. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.