RajSoup
I have a standard pfxtoarray setup working fine, i.e. pfxtoarray->arraytodynarrays(X3)->instancer.  I want to randomize the input geometry in the instancer.  Tried entering multiple geometries into the attributes of instancer to no avail.  I'm missing something. I've searched the forums and this has been briefly answered previously:

http://soup-dev.websitetoolbox.com/post/pfxtoarray-and-objectindex-7546424?highlight=instancer

Unfortunately, as a new Soup user I cannot figure out how to set this up.  Would appreciate some direction or ideally an example file.

Thanks

Raj
Reply 0 0
David l
Hi Raj

You can use the weight section of the point node to generate the random values for the object id and then use the arraytodynamic arrays to feed that into the instancer (string attribute is: objectIndex). You could also use the mesh2arrays node, but it looks like this node is missing in the OSX builds :/

I use the node pointcloudtomesh to convert the pfx positions into something the pointnode understands, as it operates on geometry. This also ensures that the array length matches with the positions coming from the pfxtoarray node.

Hope it helps, simple example attached :)

//
David
Reply 0 0
RajSoup
Hi David,
Thank you very much for this info and especially the example file.  I will study it and get back to you with any questions - no good deed goes unpunished :)


Raj
Reply 0 0
RajSoup
Hi, 
I was wondering if anyone (David? :)  would be willing to take a quick look at the attached file.  I am trying to randomize instancing at the flower position using David's example file as a guide.  I'm getting some unique flowers but mostly overlapping ones.  I assume I'm not connecting the additional arraytodynarray nodes correctly.  It's a steep learning curve for me so would appreciate the assistance.

Thanks

Raj

Sorry, cannot attach the file, maybe I don't have privileges to do so even though the option shows up for me ! Mac issue maybe?
Reply 0 0
RajSoup

//Maya ASCII 2016 scene
//Name: instancing.ma
//Last modified: Thu, Oct 08, 2015 11:41:03 PM
//Codeset: UTF-8
requires maya "2016";
requires -nodeType "VRaySettingsNode" "vrayformaya" "3.10.01";
requires -nodeType "point" -nodeType "arrayToDynArrays" -nodeType "pfxToArray" -nodeType "pointCloudToMesh"
             "SOuP" "Aug 16 2015";
currentUnit -l centimeter -a degree -t pal;
fileInfo "application" "maya";
fileInfo "product" "Maya 2016";
fileInfo "version" "2016";
fileInfo "cutIdentifier" "201502261600-953408";
fileInfo "osv" "Mac OS X 10.9.5";
fileInfo "license" "student";
createNode transform -s -n "persp";
      rename -uid "8C73A109-944D-B750-4F48-72B39C7EDFC5";
      setAttr ".v" no;
      setAttr ".t" -type "double3" 1.9990044075665925 22.355542398541488 -37.459632464698316 ;
      setAttr ".r" -type "double3" 153.80409346236971 2.8823776800763122e-15 -176.33755939512633 ;
      setAttr ".rp" -type "double3" -4.4408920985006262e-16 -4.4408920985006262e-16 0 ;
      setAttr ".rpt" -type "double3" -2.4077105881816801e-15 -4.482271956431496e-15 -3.1141065967022325e-16 ;
createNode camera -s -n "perspShape" -p "persp";
      rename -uid "5DAE01E8-CF46-870C-2747-B79FBFF654B8";
      setAttr -k off ".v" no;
      setAttr ".fl" 34.999999999999979;
      setAttr ".coi" 41.179056699172534;
      setAttr ".imn" -type "string" "persp";
      setAttr ".den" -type "string" "persp_depth";
      setAttr ".man" -type "string" "persp_mask";
      setAttr ".tp" -type "double3" 3.1601908620525281 4.2145127627948398 -0.51008036448271232 ;
      setAttr ".hc" -type "string" "viewSet -p %camera";
createNode transform -s -n "top";
      rename -uid "ECF67F4F-AF43-40AB-A9B9-A58EBF1F2983";
      setAttr ".v" no;
      setAttr ".t" -type "double3" 0 100.1 0 ;
      setAttr ".r" -type "double3" -89.999999999999986 0 0 ;
createNode camera -s -n "topShape" -p "top";
      rename -uid "C254A236-5444-90B7-7D83-079CDEAAABF1";
      setAttr -k off ".v" no;
      setAttr ".rnd" no;
      setAttr ".coi" 100.1;
      setAttr ".ow" 30;
      setAttr ".imn" -type "string" "top";
      setAttr ".den" -type "string" "top_depth";
      setAttr ".man" -type "string" "top_mask";
      setAttr ".hc" -type "string" "viewSet -t %camera";
      setAttr ".o" yes;
createNode transform -s -n "front";
      rename -uid "3C3D4FFA-704E-7BFC-651A-64B003DA734D";
      setAttr ".v" no;
      setAttr ".t" -type "double3" 0 0 100.1 ;
createNode camera -s -n "frontShape" -p "front";
      rename -uid "CEADC159-C045-F71D-1BF0-DCA1908ABBAC";
      setAttr -k off ".v" no;
      setAttr ".rnd" no;
      setAttr ".coi" 100.1;
      setAttr ".ow" 30;
      setAttr ".imn" -type "string" "front";
      setAttr ".den" -type "string" "front_depth";
      setAttr ".man" -type "string" "front_mask";
      setAttr ".hc" -type "string" "viewSet -f %camera";
      setAttr ".o" yes;
createNode transform -s -n "side";
      rename -uid "02DB014D-AA4F-7170-AF84-198E2EDF6231";
      setAttr ".v" no;
      setAttr ".t" -type "double3" 100.1 0 0 ;
      setAttr ".r" -type "double3" 0 89.999999999999986 0 ;
createNode camera -s -n "sideShape" -p "side";
      rename -uid "E50EA947-4248-4E90-A154-CB851673284C";
      setAttr -k off ".v" no;
      setAttr ".rnd" no;
      setAttr ".coi" 100.1;
      setAttr ".ow" 30;
      setAttr ".imn" -type "string" "side";
      setAttr ".den" -type "string" "side_depth";
      setAttr ".man" -type "string" "side_mask";
      setAttr ".hc" -type "string" "viewSet -s %camera";
      setAttr ".o" yes;
createNode transform -n "pCylinder1";
      rename -uid "63088DD1-174A-1A18-CFDD-3BADFE506B5B";
      setAttr ".s" -type "double3" 0.4 0.4 0.4 ;
createNode mesh -n "pCylinderShape1" -p "pCylinder1";
      rename -uid "9C65FCDF-9D4D-2F6E-299B-53BE13194B4E";
      setAttr -k off ".v";
      setAttr ".vir" yes;
      setAttr ".vif" yes;
      setAttr ".uvst[0].uvsn" -type "string" "map1";
      setAttr ".cuvs" -type "string" "map1";
      setAttr ".dcc" -type "string" "Ambient+Diffuse";
      setAttr ".covm[0]"  0 1 1;
      setAttr ".cdvm[0]"  0 1 1;
createNode transform -n "pCone1";
      rename -uid "D33D741F-7445-5E9F-1A91-B0A57CEC71AD";
      setAttr ".s" -type "double3" 0.4 0.4 0.4 ;
createNode mesh -n "pConeShape1" -p "pCone1";
      rename -uid "2940A343-3A4F-5F72-EB05-868537C30F05";
      setAttr -k off ".v";
      setAttr ".vir" yes;
      setAttr ".vif" yes;
      setAttr ".uvst[0].uvsn" -type "string" "map1";
      setAttr ".cuvs" -type "string" "map1";
      setAttr ".dcc" -type "string" "Ambient+Diffuse";
      setAttr ".covm[0]"  0 1 1;
      setAttr ".cdvm[0]"  0 1 1;
createNode transform -n "pCube1";
      rename -uid "6EB19310-1B4D-883A-10C4-84AA287F0234";
      setAttr ".s" -type "double3" 0.4 0.4 0.4 ;
createNode mesh -n "pCubeShape1" -p "pCube1";
      rename -uid "8205C6DD-6643-7B8B-9F24-C083E56233E6";
      setAttr -k off ".v";
      setAttr ".vir" yes;
      setAttr ".vif" yes;
      setAttr ".uvst[0].uvsn" -type "string" "map1";
      setAttr ".cuvs" -type "string" "map1";
      setAttr ".dcc" -type "string" "Ambient+Diffuse";
      setAttr ".covm[0]"  0 1 1;
      setAttr ".cdvm[0]"  0 1 1;
createNode transform -n "pTorus1";
      rename -uid "915590AC-4749-8F5C-81FF-7FA54834CFD5";
      setAttr ".s" -type "double3" 0.4 0.4 0.4 ;
createNode mesh -n "pTorusShape1" -p "pTorus1";
      rename -uid "31F4F171-924D-4FDF-274A-44BD1C5D2BA8";
      setAttr -k off ".v";
      setAttr ".vir" yes;
      setAttr ".vif" yes;
      setAttr ".uvst[0].uvsn" -type "string" "map1";
      setAttr ".cuvs" -type "string" "map1";
      setAttr ".dcc" -type "string" "Ambient+Diffuse";
      setAttr ".covm[0]"  0 1 1;
      setAttr ".cdvm[0]"  0 1 1;
createNode instancer -n "instancer1";
      rename -uid "13242B6A-1E49-6DC9-4917-2BAFA2FADFD2";
      setAttr -s 4 ".inh";
createNode transform -n "curveOrnamentalShrub";
      rename -uid "FE33EFA2-6E46-53FA-B168-1BB624EEB262";
      setAttr ".v" no;
createNode nurbsCurve -n "curveOrnamentalShrubShape" -p "curveOrnamentalShrub";
      rename -uid "DB7C6654-094D-87E4-AAB0-D5A8968D52B1";
      setAttr -k off ".v";
      setAttr ".cc" -type "nurbsCurve"
            2 61 0 no 3
            64 0 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
             27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
             54 55 56 57 58 59 60 61 61
            63
            0.97881499999999999 0 4.1424810000000001
            0.81545800000000002 0 4.1254239999999998
            0.65268199999999998 0 4.1084269999999998
            0.47111799999999998 0 4.0894690000000002
            0.31565500000000002 0 4.0732350000000004
            0.138183 0 4.0547040000000001
            -0.034948800000000002 0 4.036626
            -0.20582700000000001 0 4.018783
            -0.37025200000000003 0 4.001614
            -0.52775099999999997 0 3.985169
            -0.68257999999999996 0 3.9690020000000001
            -0.839507 0 3.9526159999999999
            -0.992456 0 3.9366449999999999
            -1.142436 0 3.9209839999999998
            -1.29209 0 3.9053580000000001
            -1.4416850000000001 0 3.8897379999999999
            -1.598484 0 3.8733650000000002
            -1.7555000000000001 0 3.85697
            -1.921141 0 3.839674
            -2.092603 0 3.8217699999999999
            -2.2405539999999999 0 3.8063210000000001
            -2.3912719999999998 0 3.790584
            -2.5404909999999998 0 3.7750020000000002
            -2.697241 0 3.7586349999999999
            -2.8643700000000001 0 3.7411840000000001
            -3.0279500000000001 0 3.7241029999999999
            -3.2325219999999999 0 3.7027420000000002
            -3.435009 0 3.6815989999999998
            -3.5877620000000001 0 3.6656490000000002
            -3.7463199999999999 0 3.649092
            -3.9048319999999999 0 3.6325409999999998
            -4.0714940000000004 0 3.615138
            -4.2567159999999999 0 3.5957979999999998
            -4.4703229999999996 0 3.573493
            -4.717841 0 3.5476480000000001
            -4.979851 0 3.5202900000000001
            -5.2362399999999996 0 3.4935179999999999
            -5.4870320000000001 0 3.4673310000000002
            -5.7344900000000001 0 3.4414920000000002
            -5.9743380000000004 0 3.4164469999999998
            -6.2025300000000003 0 3.39262
            -6.4228019999999999 0 3.3696199999999998
            -6.6387479999999996 0 3.3470710000000001
            -6.8455029999999999 0 3.325482
            -7.0379370000000003 0 3.3053880000000002
            -7.2176590000000003 0 3.2866219999999999
            -7.3878760000000003 0 3.2688489999999999
            -7.5547029999999999 0 3.2514289999999999
            -7.7238179999999996 0 3.2337699999999998
            -7.8954659999999999 0 3.2158470000000001
            -8.070354 0 3.1975859999999998
            -8.2573480000000004 0 3.1780599999999999
            -8.4638019999999994 0 3.1573609999999999
            -8.6801060000000003 0 3.142496
            -8.8958060000000003 0 3.1390829999999998
            -9.1114010000000007 0 3.1375959999999998
            -9.3267760000000006 0 3.1282169999999998
            -9.5282879999999999 0 3.1144449999999999
            -9.7026409999999998 0 3.101156
            -9.8514099999999996 0 3.0882230000000002
            -10.033288000000001 0 3.0686650000000002
            -10.205111 0 3.0516760000000001
            -10.375676 0 3.076959
            ;
createNode transform -n "strokeOrnamentalShrub1";
      rename -uid "4FFED246-6D43-DF2C-FA24-22A2BF30FEE7";
createNode stroke -n "strokeShapeOrnamentalShrub1" -p "strokeOrnamentalShrub1";
      rename -uid "8A1286ED-B741-B06B-E219-22A92D22DEBA";
      setAttr -k off ".v";
      setAttr ".dpc" 100;
      setAttr ".sed" 2;
      setAttr ".mvbs" 1494;
      setAttr ".usn" yes;
      setAttr ".nml" -type "double3" 0 1 0 ;
      setAttr ".pcv[0].smp" 83;
      setAttr ".spm1" 2;
      setAttr ".ps1" 0.4309;
      setAttr ".ps2" 0.2764;
      setAttr ".psc[0]"  0 1 1;
      setAttr -s 83 ".psr[0:82]"  1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
            1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
            1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1;
createNode transform -n "curveOrnamentalShrub1";
      rename -uid "547294DC-BC41-F1A3-2CD5-17BEBA562D12";
      setAttr ".v" no;
createNode nurbsCurve -n "curveOrnamentalShrubShape1" -p "curveOrnamentalShrub1";
      rename -uid "29050AE9-C843-03E8-98DE-FA885330069F";
      setAttr -k off ".v";
      setAttr ".cc" -type "nurbsCurve"
            2 81 0 no 3
            84 0 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
             27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
             54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
             81 81
            83
            4.8967299999999998 0 7.2120290000000002
            4.7347539999999997 0 7.1939320000000002
            4.5394490000000003 0 7.1721120000000003
            4.3755550000000003 0 7.1538009999999996
            4.1985710000000003 0 7.1340269999999997
            3.9974530000000001 0 7.1115570000000004
            3.7780930000000001 0 7.0870490000000004
            3.573337 0 7.0641730000000003
            3.3675069999999998 0 7.0411760000000001
            3.149054 0 7.016769
            2.9232209999999998 0 6.9915380000000003
            2.7075719999999999 0 6.9674449999999997
            2.5211519999999998 0 6.9466169999999998
            2.3600599999999998 0 6.9286190000000003
            2.1621199999999998 0 6.906504
            1.9990270000000001 0 6.8882820000000002
            1.8151630000000001 0 6.8677400000000004
            1.650055 0 6.8492930000000003
            1.47533 0 6.8297720000000002
            1.2959700000000001 0 6.8097329999999996
            1.1195329999999999 0 6.7900200000000002
            0.94745999999999997 0 6.7707959999999998
            0.75489799999999996 0 6.7492809999999999
            0.56637599999999999 0 6.7282190000000002
            0.39707500000000001 0 6.7093040000000004
            0.210034 0 6.6884059999999996
            -0.0142492 0 6.6711590000000003
            -0.191496 0 6.682601
            -0.38961200000000001 0 6.7095570000000002
            -0.60057899999999997 0 6.7260210000000002
            -0.83155299999999999 0 6.730143
            -1.105353 0 6.7442909999999996
            -1.42049 0 6.7709539999999997
            -1.5853569999999999 0 6.7835340000000004
            -1.750661 0 6.7927049999999998
            -1.9181330000000001 0 6.8001480000000001
            -2.0895269999999999 0 6.80755
            -2.2666170000000001 0 6.8165969999999998
            -2.4512010000000002 0 6.8289749999999998
            -2.6399050000000002 0 6.8430689999999998
            -2.829329 0 6.857259
            -3.0160529999999999 0 6.869923
            -3.1966299999999999 0 6.8794370000000002
            -3.3772229999999999 0 6.8869579999999999
            -3.564009 0 6.893643
            -3.7631800000000002 0 6.9006509999999999
            -3.9809420000000002 0 6.909141
            -4.2093230000000004 0 6.9171950000000004
            -4.4403230000000002 0 6.922892
            -4.6659100000000002 0 6.9243110000000003
            -4.8780299999999999 0 6.9195359999999999
            -5.0818409999999998 0 6.9125269999999999
            -5.2825639999999998 0 6.9072420000000001
            -5.4854710000000004 0 6.907635
            -5.695894 0 6.9176580000000003
            -5.9066650000000003 0 6.9330259999999999
            -6.1105470000000004 0 6.9494509999999998
            -6.3002330000000004 0 6.9626380000000001
            -6.4683549999999999 0 6.968286
            -6.7550160000000004 0 6.9680960000000001
            -7.0011070000000002 0 6.971158
            -7.2135569999999998 0 6.9815399999999999
            -7.3751959999999999 0 6.9851020000000004
            -7.5416439999999998 0 6.9831700000000003
            -7.7233020000000003 0 7.0095879999999999
            -7.8957949999999997 0 7.0114130000000001
            -8.074306 0 7.0534910000000002
            -8.2429919999999992 0 7.0522830000000001
            -8.4065980000000007 0 7.0349440000000003
            -8.5654450000000004 0 7.0115930000000004
            -8.6965699999999995 0 6.9511279999999998
            -8.7157680000000006 0 6.7033399999999999
            -8.8414370000000009 0 6.6378130000000004
            -9.0538450000000008 0 6.6156860000000002
            -9.2466380000000008 0 6.5966290000000001
            -9.4464030000000001 0 6.5729069999999998
            -9.6408109999999994 0 6.5253880000000004
            -9.8203320000000005 0 6.4391259999999999
            -9.9773750000000003 0 6.3408639999999998
            -10.107106999999999 0 6.259576
            -10.266916999999999 0 6.1745729999999996
            -10.422743000000001 0 6.121448
            -10.583752 0 6.1230270000000004
            ;
createNode lightLinker -s -n "lightLinker1";
      rename -uid "5FCC5A60-4949-1F24-11A6-7EA06FAB2150";
      setAttr -s 6 ".lnk";
      setAttr -s 6 ".slnk";
createNode displayLayerManager -n "layerManager";
      rename -uid "EF544879-D84F-1839-17F1-FFB7333E3773";
createNode displayLayer -n "defaultLayer";
      rename -uid "088E91D2-D548-B3DA-5877-C299F4921E46";
createNode renderLayerManager -n "renderLayerManager";
      rename -uid "29ADB732-0649-F422-0EC8-D6A22168C6A9";
createNode renderLayer -n "defaultRenderLayer";
      rename -uid "AF713C71-DD49-2D39-5E92-1AAB3CD4BD25";
      setAttr ".g" yes;
createNode polyCylinder -n "polyCylinder1";
      rename -uid "D7F1049D-1842-1285-69BD-9BA0400760E6";
      setAttr ".sc" 1;
      setAttr ".cuv" 3;
createNode polyCone -n "polyCone1";
      rename -uid "9899B7D8-1F43-9B0C-1070-52A6CD7DF1FF";
      setAttr ".cuv" 3;
createNode polyCube -n "polyCube1";
      rename -uid "BBA3166A-BF4E-2986-B86B-1095BDE6D75E";
      setAttr ".cuv" 4;
createNode polyTorus -n "polyTorus1";
      rename -uid "BBEDC946-9440-8956-1E39-8189203C05A2";
createNode point -n "point1";
      rename -uid "541A9EEF-254F-5FCF-D4CC-4290510E0EEC";
      setAttr ".ep" yes;
      setAttr ".ew" yes;
      setAttr ".sw" -type "string" "// POINT WEIGHT\n$W=int(rand(0.999,4.999)-1);";
createNode timeToUnitConversion -n "timeToUnitConversion1";
      rename -uid "18C938A3-3E4E-6DD2-5B2E-E18538B8591C";
      setAttr ".cf" 0.0041666666666666666;
createNode arrayToDynArrays -n "position_arrayToDynArrays1";
      rename -uid "0D2A38FE-6642-00B2-729D-36A0826537DD";
      setAttr ".n" -type "string" "position";
createNode arrayToDynArrays -n "objectIndex_arrayToDynArrays2";
      rename -uid "22365DD6-094C-E496-5CB5-2BBC4664170C";
      setAttr ".n" -type "string" "objectIndex";
createNode pfxToArray -n "pfxToArray1";
      rename -uid "DB2C30F0-8743-AB17-15A8-E5B3F8BC1C31";
      setAttr ".ld" no;
      setAttr ".ro" 4;
createNode pointCloudToMesh -n "pointCloudToMesh1";
      rename -uid "74F52C61-F347-CA61-C8F5-ED88C91A8547";
createNode script -n "sceneConfigurationScriptNode";
      rename -uid "2C44DF50-3A4B-321D-906A-ACB09601D2A7";
      setAttr ".b" -type "string" "playbackOptions -min 0 -max 120 -ast 0 -aet 200 ";
      setAttr ".st" 6;
createNode arrayToDynArrays -n "arrayToDynArrays1";
      rename -uid "0029E37A-C448-FF5F-B37B-11B569B95C86";
      setAttr ".n" -type "string" "rotation";
createNode arrayToDynArrays -n "arrayToDynArrays2";
      rename -uid "BA086CF5-B94D-68DC-0551-CA8A7E354F25";
      setAttr ".n" -type "string" "scale";
createNode brush -n "ornamentalShrub1";
      rename -uid "4DFDBFFD-C94D-239C-B432-F2B90899E127";
      setAttr ".gsc" 46;
      setAttr ".dep" yes;
      setAttr ".ill" yes;
      setAttr ".csd" yes;
      setAttr ".brc" yes;
      setAttr ".flw" yes;
      setAttr ".brt" 5;
      setAttr ".bwd" 0.37026;
      setAttr ".sdn" 5;
      setAttr ".sft" 0;
      setAttr ".cl1" -type "float3" 0.5917418 0.64462 0.39321822 ;
      setAttr ".cl2" -type "float3" 0.41353938 0.73553997 0.47401431 ;
      setAttr ".spc" -type "float3" 1 0.8041175 0.745 ;
      setAttr ".spe" 0.26446;
      setAttr ".spp" 10.248;
      setAttr ".trn" 0.44628;
      setAttr ".glc" -type "float3" 0.53333336 0.53333336 0.53333336 ;
      setAttr ".gls" 1;
      setAttr ".cvr" 0.1405;
      setAttr ".dpl" 0.28926;
      setAttr ".dps" 0.42148;
      setAttr ".rll" yes;
      setAttr ".grn" 1;
      setAttr ".tfl" no;
      setAttr ".tub" yes;
      setAttr ".tps" 0.32467532032108926;
      setAttr ".trd" 0.23966;
      setAttr ".lnx" 0.3306;
      setAttr ".lnn" 0.1652;
      setAttr ".sgm" 16;
      setAttr ".tw1" 0.010744;
      setAttr ".tw2" 0.009092;
      setAttr ".elm" 0.30578;
      setAttr ".elx" 0.98348;
      setAttr ".azn" -1;
      setAttr ".azx" 1;
      setAttr ".wgf" 5;
      setAttr ".crf" 2.4801;
      setAttr ".nof" 0.9091;
      setAttr ".smd" 1.5206;
      setAttr ".spa" 26.778;
      setAttr ".ssd" 0.77669;
      setAttr ".slb" -0.04132;
      setAttr ".slt" 0.19008;
      setAttr ".pfl" 0.0909;
      setAttr ".cfw" 0.57852;
      setAttr ".cva" 0.39804;
      setAttr ".tin" 2;
      setAttr ".tur" 0.03306;
      setAttr ".trf" 5;
      setAttr ".trs" 0.95868;
      setAttr ".grv" 0.07438;
      setAttr ".def" yes;
      setAttr ".dfx" 0.1405;
      setAttr ".ta1" 87.768;
      setAttr ".ta2" 16.365;
      setAttr ".ttw" 0.47108;
      setAttr ".twl" 0.4132;
      setAttr ".tst" 0.18182;
      setAttr ".ntc" 10.818;
      setAttr ".twb" 0.73554;
      setAttr ".twt" 0.20662;
      setAttr ".ldp" 0.15534;
      setAttr ".ll1" 4.464;
      setAttr ".ll2" 0;
      setAttr ".ltw" 0.096;
      setAttr ".lbn" -0.4132;
      setAttr -s 2 ".lcl[0:1]"  0 0.75999999 1 1 0.31999999 1;
      setAttr ".ltwl" 1;
      setAttr ".lsg" 9;
      setAttr ".lst" 1;
      setAttr ".nlc" 1;
      setAttr ".lln" 0.1;
      setAttr ".leb" 0.1;
      setAttr ".let" 0.0909;
      setAttr ".lsd" 0.97088;
      setAttr ".ltr" 0.7686;
      setAttr ".lsp" 0.08264;
      setAttr ".lc1" -type "float3" 0.84238923 0.84399998 0.81614798 ;
      setAttr ".lc2" -type "float3" 1 1 1 ;
      setAttr ".lhr" 0.0909;
      setAttr ".lsr" 0.16528;
      setAttr ".lvr" 0.23966;
      setAttr ".lub" no;
      setAttr ".lim" -type "string" "ornamentalLeaf.jpg";
      setAttr ".lfs" 0.52066;
      setAttr ".pcl[0]"  0 0.5 1;
      setAttr ".nfl" 1;
      setAttr ".pln" 0;
      setAttr ".ptb" 0;
      setAttr ".ftr" 0.3;
      setAttr ".txt" 4;
      setAttr ".mmd" 3;
      setAttr ".al1" 0;
      setAttr ".al2" 1;
      setAttr ".rpu" 1.8932;
      setAttr ".rpv" 0.4;
      setAttr ".ofv" 0.20388;
      setAttr ".smr" 0.1165;
      setAttr ".imn" -type "string" "bark.iff";
      setAttr ".tbs" 3;
      setAttr ".ppl" yes;
      setAttr -s 2 ".wsc[3:4]"  1 0.72000003 3 0 1 3;
      setAttr -s 6 ".lws[0:5]"  0.30000001 0.98000002 1 0.48571429 0.89999998
            3 1 0.02 1 0.050000001 0.23999999 1 0.12142857 0.75999999 3 0.87142855
             0.36000001 3;
      setAttr ".pws[0]"  0 1 1;
      setAttr -s 6 ".tls[0:5]"  0.035714287 0.039999999 1 0.49285713
             0.77999997 1 0.73571426 1 1 1 0 1 0.91428602 0.66000003 1 0.37857142
             0.34 1;
      setAttr -s 3 ".env";
      setAttr ".env[0].envp" 0.20000000298023224;
      setAttr ".env[0].envc" -type "float3" 0 0 0.15000001 ;
      setAttr ".env[0].envi" 1;
      setAttr ".env[1].envp" 0.5;
      setAttr ".env[1].envc" -type "float3" 0.47999999 0.55000001 0.69999999 ;
      setAttr ".env[1].envi" 1;
      setAttr ".env[2].envp" 1;
      setAttr ".env[2].envc" -type "float3" 0 0.1 0.44999999 ;
      setAttr ".env[2].envi" 1;
      setAttr ".rro[0]"  0 1 1;
createNode blinn -n "blinn1";
      rename -uid "4DC4A829-E94B-592E-995B-769640FFAE79";
      setAttr ".c" -type "float3" 1 0 0 ;
createNode shadingEngine -n "blinn1SG";
      rename -uid "DE842F89-3E43-5149-22D9-27B22278F290";
      setAttr ".ihi" 0;
      setAttr ".ro" yes;
createNode materialInfo -n "materialInfo1";
      rename -uid "0BD914F8-2247-E7BB-9D81-88AB559F9713";
createNode VRaySettingsNode -s -n "vraySettings";
      rename -uid "B3157850-CE49-07F6-737A-D0945967FD71";
      setAttr ".pe" 2;
      setAttr ".se" 3;
      setAttr ".cmph" 60;
      setAttr ".cfile" -type "string" "";
      setAttr ".cfile2" -type "string" "";
      setAttr ".casf" -type "string" "";
      setAttr ".casf2" -type "string" "";
      setAttr ".st" 3;
      setAttr ".msr" 2;
      setAttr ".sd" 1000;
      setAttr ".ss" 0.01;
      setAttr ".pfts" 20;
      setAttr ".ufg" yes;
      setAttr ".fnm" -type "string" "";
      setAttr ".lcfnm" -type "string" "";
      setAttr ".asf" -type "string" "";
      setAttr ".lcasf" -type "string" "";
      setAttr ".urtrshd" yes;
      setAttr ".rtrshd" 2;
      setAttr ".ifile" -type "string" "";
      setAttr ".ifile2" -type "string" "";
      setAttr ".iasf" -type "string" "";
      setAttr ".iasf2" -type "string" "";
      setAttr ".pmfile" -type "string" "";
      setAttr ".pmfile2" -type "string" "";
      setAttr ".pmasf" -type "string" "";
      setAttr ".pmasf2" -type "string" "";
      setAttr ".dmcstd" yes;
      setAttr ".cmao" 2;
      setAttr ".cg" 2.2000000476837158;
      setAttr ".mtah" yes;
      setAttr ".srflc" 1;
      setAttr ".seu" yes;
      setAttr ".gormio" yes;
      setAttr ".wi" 960;
      setAttr ".he" 540;
      setAttr ".aspr" 1.7777780294418335;
      setAttr ".jpegq" 100;
      setAttr ".vfbOn" yes;
      setAttr ".mSceneName" -type "string" "/Users/rajendrakumar-singh/Downloads/instancing.ma";
createNode phong -n "phong1";
      rename -uid "C0EC452C-B040-A03C-6C66-07B0907F91EE";
      setAttr ".c" -type "float3" 0 1 0 ;
createNode shadingEngine -n "phong1SG";
      rename -uid "18697DED-FC45-EF42-5716-A58D9C004A1C";
      setAttr ".ihi" 0;
      setAttr ".ro" yes;
createNode materialInfo -n "materialInfo2";
      rename -uid "33382E16-C940-59AC-46FC-62B0C1093D46";
createNode lambert -n "lambert2";
      rename -uid "18EF6173-3942-39D4-272F-699E73B114FC";
      setAttr ".c" -type "float3" 0 0 1 ;
createNode shadingEngine -n "lambert2SG";
      rename -uid "E299E350-A844-DCE7-8A2D-75869A53A4C4";
      setAttr ".ihi" 0;
      setAttr ".ro" yes;
createNode materialInfo -n "materialInfo3";
      rename -uid "3D9CBD32-2644-8F1A-99F7-4ABB3D17CE50";
createNode blinn -n "blinn2";
      rename -uid "845F2510-8344-B026-FA83-8882EE97C1D1";
      setAttr ".c" -type "float3" 1 1 0 ;
createNode shadingEngine -n "blinn2SG";
      rename -uid "E0E3EEE5-824A-163C-A0A9-EF9A033DEA0D";
      setAttr ".ihi" 0;
      setAttr ".ro" yes;
createNode materialInfo -n "materialInfo4";
      rename -uid "EBBBAD9A-E247-3E7A-C63D-24BF3443DD9E";
createNode nodeGraphEditorInfo -n "MayaNodeEditorSavedTabsInfo";
      rename -uid "D394C674-4745-199A-D662-B0B73320FF34";
      setAttr ".tgi[0].tn" -type "string" "Untitled_1";
      setAttr ".tgi[0].vl" -type "double2" -112.34126537722888 -942.85710539136778 ;
      setAttr ".tgi[0].vh" -type "double2" 3277.8173300687026 780.95234992012274 ;
      setAttr -s 24 ".tgi[0].ni";
      setAttr ".tgi[0].ni[0].x" 2081.05908203125;
      setAttr ".tgi[0].ni[0].y" -170.26951599121094;
      setAttr ".tgi[0].ni[0].nvs" 18304;
      setAttr ".tgi[0].ni[1].x" 1370.867919921875;
      setAttr ".tgi[0].ni[1].y" -172.7532958984375;
      setAttr ".tgi[0].ni[1].nvs" 18304;
      setAttr ".tgi[0].ni[2].x" 1265.8350830078125;
      setAttr ".tgi[0].ni[2].y" -44.424041748046875;
      setAttr ".tgi[0].ni[2].nvs" 18304;
      setAttr ".tgi[0].ni[3].x" 1100.6417236328125;
      setAttr ".tgi[0].ni[3].y" -170.11044311523438;
      setAttr ".tgi[0].ni[3].nvs" 18304;
      setAttr ".tgi[0].ni[4].x" 800.37445068359375;
      setAttr ".tgi[0].ni[4].y" 98.099365234375;
      setAttr ".tgi[0].ni[4].nvs" 19281;
      setAttr ".tgi[0].ni[5].x" 1.4285714626312256;
      setAttr ".tgi[0].ni[5].y" -1.4285714626312256;
      setAttr ".tgi[0].ni[5].nvs" 18304;
      setAttr ".tgi[0].ni[6].x" 1495.2763671875;
      setAttr ".tgi[0].ni[6].y" -44.424041748046875;
      setAttr ".tgi[0].ni[6].nvs" 18304;
      setAttr ".tgi[0].ni[7].x" 1870.004638671875;
      setAttr ".tgi[0].ni[7].y" -44.513454437255859;
      setAttr ".tgi[0].ni[7].nvs" 18304;
      setAttr ".tgi[0].ni[8].x" 1658.3912353515625;
      setAttr ".tgi[0].ni[8].y" -171.31483459472656;
      setAttr ".tgi[0].ni[8].nvs" 18304;
      setAttr ".tgi[0].ni[9].x" 493.40396118164062;
      setAttr ".tgi[0].ni[9].y" 216.30215454101562;
      setAttr ".tgi[0].ni[9].nvs" 18304;
      setAttr ".tgi[0].ni[10].x" 2455.71435546875;
      setAttr ".tgi[0].ni[10].y" -125.71428680419922;
      setAttr ".tgi[0].ni[10].nvs" 18304;
      setAttr ".tgi[0].ni[11].x" 2728.571533203125;
      setAttr ".tgi[0].ni[11].y" -1052.857177734375;
      setAttr ".tgi[0].ni[11].nvs" 18304;
      setAttr ".tgi[0].ni[12].x" 2990;
      setAttr ".tgi[0].ni[12].y" -1098.5714111328125;
      setAttr ".tgi[0].ni[12].nvs" 18304;
      setAttr ".tgi[0].ni[13].x" 3251.428466796875;
      setAttr ".tgi[0].ni[13].y" -1052.857177734375;
      setAttr ".tgi[0].ni[13].nvs" 18304;
      setAttr ".tgi[0].ni[14].x" 5710;
      setAttr ".tgi[0].ni[14].y" -1117.142822265625;
      setAttr ".tgi[0].ni[14].nvs" 18304;
      setAttr ".tgi[0].ni[15].x" 5760;
      setAttr ".tgi[0].ni[15].y" -1052.857177734375;
      setAttr ".tgi[0].ni[15].nvs" 18304;
      setAttr ".tgi[0].ni[16].x" 6021.4287109375;
      setAttr ".tgi[0].ni[16].y" -1098.5714111328125;
      setAttr ".tgi[0].ni[16].nvs" 18304;
      setAttr ".tgi[0].ni[17].x" 6282.85693359375;
      setAttr ".tgi[0].ni[17].y" -1052.857177734375;
      setAttr ".tgi[0].ni[17].nvs" 18304;
      setAttr ".tgi[0].ni[18].x" 5760;
      setAttr ".tgi[0].ni[18].y" -1052.857177734375;
      setAttr ".tgi[0].ni[18].nvs" 18304;
      setAttr ".tgi[0].ni[19].x" 6021.4287109375;
      setAttr ".tgi[0].ni[19].y" -1098.5714111328125;
      setAttr ".tgi[0].ni[19].nvs" 18304;
      setAttr ".tgi[0].ni[20].x" 6282.85693359375;
      setAttr ".tgi[0].ni[20].y" -1052.857177734375;
      setAttr ".tgi[0].ni[20].nvs" 18304;
      setAttr ".tgi[0].ni[21].x" 5760;
      setAttr ".tgi[0].ni[21].y" -1071.4285888671875;
      setAttr ".tgi[0].ni[21].nvs" 18304;
      setAttr ".tgi[0].ni[22].x" 6021.4287109375;
      setAttr ".tgi[0].ni[22].y" -1117.142822265625;
      setAttr ".tgi[0].ni[22].nvs" 18304;
      setAttr ".tgi[0].ni[23].x" 6282.85693359375;
      setAttr ".tgi[0].ni[23].y" -1071.4285888671875;
      setAttr ".tgi[0].ni[23].nvs" 18304;
select -ne :time1;
      setAttr ".o" 0;
select -ne :hardwareRenderingGlobals;
      setAttr ".otfna" -type "stringArray" 22 "NURBS Curves" "NURBS Surfaces" "Polygons" "Subdiv Surface" "Particles" "Particle Instance" "Fluids" "Strokes" "Image Planes" "UI" "Lights" "Cameras" "Locators" "Joints" "IK Handles" "Deformers" "Motion Trails" "Components" "Hair Systems" "Follicles" "Misc. UI" "Ornaments"  ;
      setAttr ".otfva" -type "Int32Array" 22 0 1 1 1 1 1
             1 1 1 0 0 0 0 0 0 0 0 0
             0 0 0 0 ;
select -ne :renderPartition;
      setAttr -s 6 ".st";
select -ne :renderGlobalsList1;
select -ne :defaultShaderList1;
      setAttr -s 8 ".s";
select -ne :postProcessList1;
      setAttr -s 2 ".p";
select -ne :defaultRenderingList1;
select -ne :initialShadingGroup;
      setAttr ".ro" yes;
select -ne :initialParticleSE;
      setAttr ".ro" yes;
select -ne :defaultRenderGlobals;
      setAttr ".fs" 1;
      setAttr ".ef" 10;
      setAttr ".pram" -type "string" ";if(`whatIs mMaya_preRender` != \"Unknown\"){ eval(\"mMaya_preRender()\"); }";
      setAttr ".poam" -type "string" ";if(`whatIs mMaya_postRender` != \"Unknown\"){ eval(\"mMaya_postRender()\"); }";
select -ne :defaultResolution;
      setAttr ".pa" 1;
select -ne :hardwareRenderGlobals;
      setAttr ".ctrs" 256;
      setAttr ".btrs" 512;
connectAttr "polyCylinder1.out" "pCylinderShape1.i";
connectAttr "polyCone1.out" "pConeShape1.i";
connectAttr "polyCube1.out" "pCubeShape1.i";
connectAttr "polyTorus1.out" "pTorusShape1.i";
connectAttr "pCylinder1.m" "instancer1.inh[0]";
connectAttr "pCone1.m" "instancer1.inh[1]";
connectAttr "pCube1.m" "instancer1.inh[2]";
connectAttr "pTorus1.m" "instancer1.inh[3]";
connectAttr "objectIndex_arrayToDynArrays2.oda" "instancer1.inp";
connectAttr "ornamentalShrub1.obr" "strokeShapeOrnamentalShrub1.brs";
connectAttr "curveOrnamentalShrubShape1.ws" "strokeShapeOrnamentalShrub1.pcv[0].crv"
            ;
relationship "link" ":lightLinker1" ":initialShadingGroup.message" ":defaultLightSet.message";
relationship "link" ":lightLinker1" ":initialParticleSE.message" ":defaultLightSet.message";
relationship "link" ":lightLinker1" "blinn1SG.message" ":defaultLightSet.message";
relationship "link" ":lightLinker1" "phong1SG.message" ":defaultLightSet.message";
relationship "link" ":lightLinker1" "lambert2SG.message" ":defaultLightSet.message";
relationship "link" ":lightLinker1" "blinn2SG.message" ":defaultLightSet.message";
relationship "shadowLink" ":lightLinker1" ":initialShadingGroup.message" ":defaultLightSet.message";
relationship "shadowLink" ":lightLinker1" ":initialParticleSE.message" ":defaultLightSet.message";
relationship "shadowLink" ":lightLinker1" "blinn1SG.message" ":defaultLightSet.message";
relationship "shadowLink" ":lightLinker1" "phong1SG.message" ":defaultLightSet.message";
relationship "shadowLink" ":lightLinker1" "lambert2SG.message" ":defaultLightSet.message";
relationship "shadowLink" ":lightLinker1" "blinn2SG.message" ":defaultLightSet.message";
connectAttr "layerManager.dli[0]" "defaultLayer.id";
connectAttr "renderLayerManager.rlmi[0]" "defaultRenderLayer.rlid";
connectAttr "pointCloudToMesh1.om" "point1.ig";
connectAttr "timeToUnitConversion1.o" "point1.ctm";
connectAttr ":time1.o" "timeToUnitConversion1.i";
connectAttr "pfxToArray1.ofppp" "position_arrayToDynArrays1.ia";
connectAttr "arrayToDynArrays2.oda" "objectIndex_arrayToDynArrays2.ida";
connectAttr "point1.owpp" "objectIndex_arrayToDynArrays2.ia";
connectAttr "strokeShapeOrnamentalShrub1.wmm" "pfxToArray1.ism";
connectAttr "pfxToArray1.ofppp" "pointCloudToMesh1.ippp";
connectAttr "pfxToArray1.ofrpp" "arrayToDynArrays1.ia";
connectAttr "position_arrayToDynArrays1.oda" "arrayToDynArrays1.ida";
connectAttr "pfxToArray1.ofwpp" "arrayToDynArrays2.ia";
connectAttr "arrayToDynArrays1.oda" "arrayToDynArrays2.ida";
connectAttr ":time1.o" "ornamentalShrub1.tim";
connectAttr "blinn1.oc" "blinn1SG.ss";
connectAttr "pCylinderShape1.iog" "blinn1SG.dsm" -na;
connectAttr "blinn1SG.msg" "materialInfo1.sg";
connectAttr "blinn1.msg" "materialInfo1.m";
connectAttr "phong1.oc" "phong1SG.ss";
connectAttr "pTorusShape1.iog" "phong1SG.dsm" -na;
connectAttr "phong1SG.msg" "materialInfo2.sg";
connectAttr "phong1.msg" "materialInfo2.m";
connectAttr "lambert2.oc" "lambert2SG.ss";
connectAttr "pCubeShape1.iog" "lambert2SG.dsm" -na;
connectAttr "lambert2SG.msg" "materialInfo3.sg";
connectAttr "lambert2.msg" "materialInfo3.m";
connectAttr "blinn2.oc" "blinn2SG.ss";
connectAttr "pConeShape1.iog" "blinn2SG.dsm" -na;
connectAttr "blinn2SG.msg" "materialInfo4.sg";
connectAttr "blinn2.msg" "materialInfo4.m";
connectAttr "instancer1.msg" "MayaNodeEditorSavedTabsInfo.tgi[0].ni[0].dn";
connectAttr "arrayToDynArrays1.msg" "MayaNodeEditorSavedTabsInfo.tgi[0].ni[1].dn"
            ;
connectAttr "pointCloudToMesh1.msg" "MayaNodeEditorSavedTabsInfo.tgi[0].ni[2].dn"
            ;
connectAttr "position_arrayToDynArrays1.msg" "MayaNodeEditorSavedTabsInfo.tgi[0].ni[3].dn"
            ;
connectAttr "pfxToArray1.msg" "MayaNodeEditorSavedTabsInfo.tgi[0].ni[4].dn";
connectAttr ":time1.msg" "MayaNodeEditorSavedTabsInfo.tgi[0].ni[5].dn";
connectAttr "point1.msg" "MayaNodeEditorSavedTabsInfo.tgi[0].ni[6].dn";
connectAttr "objectIndex_arrayToDynArrays2.msg" "MayaNodeEditorSavedTabsInfo.tgi[0].ni[7].dn"
            ;
connectAttr "arrayToDynArrays2.msg" "MayaNodeEditorSavedTabsInfo.tgi[0].ni[8].dn"
            ;
connectAttr "strokeShapeOrnamentalShrub1.msg" "MayaNodeEditorSavedTabsInfo.tgi[0].ni[9].dn"
            ;
connectAttr "strokeOrnamentalShrub1.msg" "MayaNodeEditorSavedTabsInfo.tgi[0].ni[10].dn"
            ;
connectAttr "blinn1.msg" "MayaNodeEditorSavedTabsInfo.tgi[0].ni[11].dn";
connectAttr "blinn1SG.msg" "MayaNodeEditorSavedTabsInfo.tgi[0].ni[12].dn";
connectAttr "materialInfo1.msg" "MayaNodeEditorSavedTabsInfo.tgi[0].ni[13].dn";
connectAttr ":vraySettings.msg" "MayaNodeEditorSavedTabsInfo.tgi[0].ni[14].dn";
connectAttr "phong1.msg" "MayaNodeEditorSavedTabsInfo.tgi[0].ni[15].dn";
connectAttr "phong1SG.msg" "MayaNodeEditorSavedTabsInfo.tgi[0].ni[16].dn";
connectAttr "materialInfo2.msg" "MayaNodeEditorSavedTabsInfo.tgi[0].ni[17].dn";
connectAttr "lambert2.msg" "MayaNodeEditorSavedTabsInfo.tgi[0].ni[18].dn";
connectAttr "lambert2SG.msg" "MayaNodeEditorSavedTabsInfo.tgi[0].ni[19].dn";
connectAttr "materialInfo3.msg" "MayaNodeEditorSavedTabsInfo.tgi[0].ni[20].dn";
connectAttr "blinn2.msg" "MayaNodeEditorSavedTabsInfo.tgi[0].ni[21].dn";
connectAttr "blinn2SG.msg" "MayaNodeEditorSavedTabsInfo.tgi[0].ni[22].dn";
connectAttr "materialInfo4.msg" "MayaNodeEditorSavedTabsInfo.tgi[0].ni[23].dn";
connectAttr "blinn1SG.pa" ":renderPartition.st" -na;
connectAttr "phong1SG.pa" ":renderPartition.st" -na;
connectAttr "lambert2SG.pa" ":renderPartition.st" -na;
connectAttr "blinn2SG.pa" ":renderPartition.st" -na;
connectAttr "blinn1.msg" ":defaultShaderList1.s" -na;
connectAttr "phong1.msg" ":defaultShaderList1.s" -na;
connectAttr "lambert2.msg" ":defaultShaderList1.s" -na;
connectAttr "blinn2.msg" ":defaultShaderList1.s" -na;
connectAttr "defaultRenderLayer.msg" ":defaultRenderingList1.r" -na;
// End of instancing.ma

Reply 0 0
RajSoup
Apologies for posting the long message above, I could not figure out any other way to post my file right now !
Reply 0 0
David l
Hi Raj

On windows I need to set the filebrowser to "All files" for me to attach a .ma file, maybe you have something similar on OSX?

I looked at your file, if you set "flower range" to 0 in the pfxToArray node, you only get one point pr. flower, and the instancer should do what you want. :) 

I suspect this is because af PFX flower has a point for each pedal but not quite sure. Mayabe Peter can explain this slider better.

//
David
Reply 0 0
RajSoup
Hi David,
  Once again, thank you with the generosity of your time.  That fixed the problem.  

This soup plugin is amazing work.  Congrats Peter.  I hope you will keep developing it and I would gladly pay for a commercial version should you ever go in that direction.

Regarding the file attachment issue, I'll look into it.  I have been using Mac OS for many years and never had this issue before.

Raj
Reply 0 0
Reply