Notifications
Clear all

[Closed] Creation of custom shape need help

Hello!

In trying to extend the circle shape but I have some problem doing this…

I want to create the circle:

  • fixed size of 1.35 (radius) – This is Ok
  • Wirecolor of: 20 240 20 – This is Ok but not sure if good.
  • The created circle named: UniqueName “Dot” – This is Ok but not sure if good.
  • No radius in the UI
  • A png image displayed in the UI.
  • A new checkbox value in the UI for custom purpose.

When trying to create it like NewDot pos:[0,0,0]
I got the dot created but can’t see it…??? Just the pivot.

Really need help on this one Im not very good at plugins…

plugin shape NEWDot
 name:"New Dot"
 classID:#(0x133067, 0x53375)
 extends:Circle version:1
 category:"New Dot"
 (
   tool create
   (
 	local clickPoint
 	  
 	on mousePoint click do
 	  case click of
 	  (
 		1: (nodeTM.translation = gridPoint
 			 delegate.radius = 1.35
 			 $.name = UniqueName "Dot"
 			 $.wirecolor = (color 20 240 20)
 			)
 		3: #stop
 	  )
 	on mouseMove click do
 	  case click of
 	  (
 		2: (nodeTM.translation = gridPoint)
 		3: #stop
 	  )
   )
 )
 
 

regards,