Skip to content

All Comments

801 to 820 of 19724

Filter comments

NL2 Ask Thread

MrRC posted on February 3rd, 2025

Can u place a screenshot of your Blender ?

Other than the object geometry being different, it's exactly the same as your screenshot; I cannot reproduce your problem. Assuming that your script works as desired, I do not see where the problem arises. Unless you post a park package that includes the Scene Object and script, as well as your Blender project, I cannot help you any further.

View comment
NL2 Ask Thread

MrRC posted on February 2nd, 2025

Script wise is no problem, i use this script with 500 other objects and with no problems.

I will post a screenschot of the Blender project

i.imgur.com/gVTq4sa.png

Feel free to ask if screenshot not visable.

Alright, I'm afraid I can't help any further in that case. If you're sure it's not the script, then you would expect the exported Blender file to be faulty.
However...
I even mimicked your Blender project by renaming a body to "Eel_01". Then exported it to a Collada file and made a new Scene Object in NoLimits. I attached a script to it that uses .getElementForName("Eel_01") and it successfully finds it.

View comment
NL2 Ask Thread

MrRC posted on February 2nd, 2025

I did give it a try.

But still no luck.
Still error warning : Object "Eel_01" not found.

Can you post a screenshot of your Blender project and also a snippet of the code (including the bit where you use SceneObject so =.... and SceneObjectElement soe =...).
Also, I assume you've correctly entered the strings of the Scene Object and scene object element...

View comment
Dragón Groar's NoLimits 2 Script Generator
Scripting

CCA_Games posted on February 2nd, 2025

I think a bug is when going for a section of track to a storage track you can hear the transports constantly turning on and off.

That's part of the speed limiting code. For next version, I've added a small histeresis (like the one in the brake sections on the NL2 editor) that greatly reduces that annoying noise. For now, it does help that for the transfer track or brake section leading to the storage track you set a low transport acceleration and deceleration. Next version will make it better ^^

View comment
NL2 Ask Thread
NoLimits Coaster

MrRC posted on January 30th, 2025

This line in the script is searching for the object (needs to move) :
leftDoor = sco.getElementForName("Eel_01");

In Sketchup u can assing a name with Entityname to an object (Highlight the object and Rightclick and give the object an Entity name, in this case "Eel_01")

I don't know how it works in Blender 4.0

Feel free to ask for more details.

The video from my first reply (quoted below) shows you how to do that. In Blender, select the object you need to rename, press F2 and call it "Eel_01".

NoLimits Explorers posted on January 29th, 2025

...
This video might be what you're looking for:
https://www.youtube.com/watch?v=ee2QXxP5Qtw
...

Then your line:

leftDoor = sco.getElementForName("Eel_01");

returns the object with that name you specified in the Blender project.
Remember: You need to export your Blender project to a 3D file type that NoLimits 2 supports, such as a Collada ('.cae')('.dae') file.

View comment
NL2 Ask Thread
NoLimits Coaster

This line in the script is searching for the object (needs to move) :
leftDoor = sco.getElementForName("Eel_01");

In Sketchup u can assing a name with Entityname to an object (Highlight the object and Rightclick and give the object an Entity name, in this case "Eel_01")

I don't know how it works in Blender 4.0

Feel free to ask for more details.

View comment
NL2 Ask Thread
NoLimits Coaster

MrRC posted on January 29th, 2025

NoLimits Explorers posted on January 29th, 2025

This video might be what you're looking for:
https://www.youtube.com/watch?v=ee2QXxP5Qtw
...

The script i have allready using (Google SketchUp objects that have an Entity name) and they move as the script is intended.

Now i have to make that object in Blender 4.0 give the same Entity name so the script can find the object.(*.dae)

Unless the video I posted the link of is what you want to do (renaming objects in Blender), I'm afraid I don't fully understand the problem and need more detail to help out.

View comment
NL2 Ask Thread
NoLimits Coaster

NoLimits Explorers posted on January 29th, 2025

Hi,

This video might be what you're looking for:
https://www.youtube.com/watch?v=ee2QXxP5Qtw

You can use the getElementForName(String name) method from the SceneObject class to find the SceneObjectElement within the 3D file (which is the object you renamed in Blender).

Or use getElementCount() and use a loop to find all objects in the 3D file using getElementAt(int number) from the SceneObject class. Use getName() from the SceneObjectElement class to find the name of each object and you'll find the same object names as seen in Blender.

The script i have allready using (Google SketchUp objects that have an Entity name) and they move as the script is intended.

Now i have to make that object in Blender 4.0 give the same Entity name so the script can find the object.(*.dae)

View comment
NL2 Ask Thread
NoLimits Coaster

MrRC posted on January 29th, 2025

Does anyone know how to give a single object a name so a script can find it ? (in Blender 4.0)

I know how to do it in Google Sketchup. But now is the time to change to Blender 4.0

Hi,

This video might be what you're looking for:
https://www.youtube.com/watch?v=ee2QXxP5Qtw

You can use the getElementForName(String name) method from the SceneObject class to find the SceneObjectElement within the 3D file (which is the object you renamed in Blender).

Or use getElementCount() and use a loop to find all objects in the 3D file using getElementAt(int number) from the SceneObject class. Use getName() from the SceneObjectElement class to find the name of each object and you'll find the same object names as seen in Blender.

View comment
NL2 Ask Thread
NoLimits Coaster

Does anyone know how to give a single object a name so a script can find it ? (in Blender 4.0)

I know how to do it in Google Sketchup. But now is the time to change to Blender 4.0

View comment
801 to 820 of 19724