Another code example

ahuman's Avatar

ahuman

18 Aug, 2021 10:59 AM

Just look at the attachments.
It's a simple example. Before I make this code example, I was thinking about placing some constraints to draw a graph or 3D model. We can place a dependent variables (center point, width, radius and etc) and create the other variables which are based on these dependent variables. We can also place constraints between variables to automaticaly calculate the variables' value we want to achieve. In the latter case, we have to solve the equations. I think mixing these two methods is more flexible.
Usually we draw a graph using some kind of UI tool, then you have to click the tool button to start the tool action. Then, you have to select a center point to start placing a circle. Sometimes we hope to have this center point snaped to an exixsting point. This "existing piont" is actually a dependent variable. When you try to place nodes to get such a center point, you usually don't want to place too many nodes. At this time, we can place a code defined node to get an output what we want.

  1. 1 Posted by ahuman on 18 Aug, 2021 11:31 AM

    ahuman's Avatar

    I chaged the code.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Already uploaded files

  • NodeBox_eorTVsCOok.png 96.7 KB
  • Code_p0fXS7zXco.png 46.3 KB
  • codeTest.7z 1.09 KB
  • codeTest.zip 1.37 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

06 Sep, 2023 07:20 AM
05 Sep, 2023 08:40 PM
30 Aug, 2023 03:16 AM
19 Aug, 2023 03:22 AM
29 Jul, 2023 05:52 AM

 

28 Jul, 2023 10:53 PM
23 Jul, 2023 07:04 AM
14 Jul, 2023 03:05 AM
07 Jul, 2023 06:26 AM
05 Jul, 2023 11:44 PM
30 Jun, 2023 12:48 PM