Jump to content

Recommended Posts

Posted

That is the correct script but when that script (splinePlacementPanelCombined_25) is first executed it automatically creates the transform groups required for operation the ones in your GE picture do not match those

Yours

Roads

         |

          splinePlacement

                        |

                        objectsToPlace

                       |

                        placedObjects

 

From the combined panel

splineObjects

                   |

                   splinePlacement

                                          |

                                        objectsToPlace

                                          |

                                          placedObjects

So you are using a diiferent version of the script as I said in a previous post

                                                                                                          Check your TG groups against the one shown in the image of my previous post

Also a pop up Panel with all the Settings/Inputs will also appear in GE

Posted

i renamed my parent transform to roads so i knew what i was using it for... i used a new transform and no such luck. from the parent transform down top the last child transform including the cube that i use as a marker every transform is at zero and the blue line of the gismo all face south. iv tried turning my cube every direction under the sun and freezing the scale and rotation.    it follows fine in a straight line north to south but any curve at all and the cube just wont rotate to follow the spline.. when i loaded fs22 up i got it to work first time.. i'm lost here 🙂

Posted

now that looks like it should, 🙂 so apart from creating the spline transform group and cube object, did you have to change any thing? the amount of time i spent using this in fs22 this should be a breeze but it's got me  well stuck..

 

Posted

what iv just noticed, if i run the spline with the end facing north and the start facing south i can get the cube to follow the spline as it should but once i extract the data into spline street constructor it  doesn't work.  if i run the spline in reverse with the start going in the direction  of north the cube wont follow the spline around the curves but the extracted data will produce the road with defects duw to the cube not following the spline..   what would be stopping the cube following the spline when the start is going in the direction of north?

Posted

Sorry never used spline street constructor so have no idea how it works I always create my roads using the CSV script and then importing the .obj of the spline created directly into Blender.

Posted

I  may have to try the CSV all though that crashed my GE earlier too..  i started making roads in Blender without the CSV but found that spline street produced a better road and was a bit quicker so went back to it...  not got around to the fences yet. thanks for the help..

 

Posted

The rotation issue if the spline heads South vs if it heads North has been around for a while. It's something to do with euler rotations I think, but I never got round to figuring it out and fixing it.

 

Posted
Quote

The rotation issue if the spline heads South vs if it heads North has been around for a while. It's something to do with euler rotations I think, but I never got round to figuring it out and fixing it.

Note: To avoid any confusion this only applies to using a spline in Spline Street Constructer and not when using any of the FS 25 scripts

Posted
On 12/8/2024 at 6:38 AM, WrinkleysRule said:

@antler22

If your fence placement is so tight that you cannot move either the start or corner slightly (0.7m total in your case) for your 3m fence to fit (spline distance from start is now displayed at each CV) then you have two options,

carry on using multiple splines or create your own custom fence in Blender and export/import as i3d to Giants Editor.

I did find an easier way to do this, not sure why I didn't think of it before.  But for any curious...

  1. Run the script with no. wires set to 0
  2. Adjust posts/poles to preferences (sharp 90deg corners)
  3. Rename last post/pole unique so you know where pole placement starts over 
  4. Run script again with wires set at desired level, this will put wires against all previous posts as well as new ones
  5. Delete second set of posts after marked end, as these are now redundant
  • Like 1
Posted

Would this be done for heavy steel post fencing like this?  Fencing I'm using has a steel beam on top as well as through the middle, I'm not sure if IRL they would make a corner with additional support or not...?

 

image.thumb.png.dcd212d54def9017d0ea4b1f4a7757dc.png

Posted

Not necessarily, it would depend on what was kept inside the fence and whether those thicker bars shown in your image ( I presume the other bars are just rebar slotted into the upright ) were welded to the post,

Supported corner posts are generally used where the lateral pull of the wire/mesh could pull the post over in either direction once tensioned.

Posted
On 12/11/2024 at 11:10 AM, WrinkleysRule said:

Note: To avoid any confusion this only applies to using a spline in Spline Street Constructer and not when using any of the FS 25 scripts

Not in my experience. If I run a spline in GE and use the new 25 panel placement script, I get the same issue, objects are not rotated correctly if the spline runs North-South, but if I reverse the spline and rerun the placement, it works correctly. (placing hedges)

Posted
2 hours ago, Dickieboy said:

Not in my experience. If I run a spline in GE and use the new 25 panel placement script, I get the same issue, objects are not rotated correctly if the spline runs North-South, but if I reverse the spline and rerun the placement, it works correctly. (placing hedges)

Deselect "stay upright" sorted this for me when placing road sections.

 

Posted

Sorry but it seems the problem is still there so disregard the following explanation

Ok, I have found an error in part of the code which was affecting the spline position/direction now seems to be working

So have updated the scripts zip with the updated splinePlacementPanelCombined script

In the image spline1 was added to the splinePlacement for clarity,

NOTE: when placing long hedges it is advisable to move the point of origin to the centre of the hedge mesh this will give a better alignment on corners.

splineProblemNS.thumb.png.1259ba85fb6d7e4ab2c77a81314040b1.png

Plese inform me ASAP either by PM or forum post of any problems that occur with the scripts so I can rectify them quickly.

Posted

I think there is an error with the random scale parameters, simply turning on the random scaling and leaving both low scale and max scale at 1 the objects are scaling between 1 - 1.8. Changing these parameters do some weird things and dont really limit the scaling setting to 1 low and 1.1 max I was getting weird scaling between 1 - 2.1 across all objects. Unsure if this intended or I am just not understanding the random scaling section

Posted

Ok I changed the settings to get a more random scale  but I will now revert to the previous settings in the next update, which will be after I sort this rotation problem.

In the meantime if you want to change the settings in GE script editor line 226 has the random scale section

 Replace  --   sx = scaleLow + math.random() * scaleHigh

with

local scale = scaleHigh - scaleLow
sx = math.random()*scale+scaleLow

  • Like 1
Posted

I hope I have now corrected the splinePlacementPanelCombined_25 script.

Changes to the Panel Settings

Stay Upright is now Deselected by default  so any objects placed will now follow the terrain  contour,

Selected  they will remain upright regardless of the terrain contour.

Random Scale adjusted as mentioned in previous post

Random Placement random values adjusted to give a better placement

Known problem, when  Fixed distance set value could cause bunching of objects dependending on Object Distance and the curve of the spline.

Any other problems found please notify me by PM or forum post.

 

Posted

wrinkley, thx for the scripts! would you be able to help? when creating a spline in GE, natively, the scale options are greyed out. is it possible when i run your CSV spline script to ungrey the spline scale upon creation of the new spline?

Posted

That is because you cannot scale a spline you can only translate/rotate a spline, bear in mind if the spline is rotated for any reason you have to Freeze transform the rotation  before using it in any script.

Also I can't think of any reason to scale a spline so I would be intrigued to know why you would want to.

 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now