I wonder if you could save the object as a lamp, so you can use it with the lamp tool! Also, the 2d symbol needs to scale up or down according to the scale of the drawing and I wonder how would that be done!
You could save it as a lamp, yes, but in that form it will not have an IES file attached to it so you can use it for accurate lighting in renders. With regards to scaleable symbols I would actually question the need for this, as in practice you would have a single scale in which you would deliver lighting/electrical drawings. People that want that flexibility could implement a 2D script into their objects to adjust dependant on scale.
IF GLOB_SCALE=250 THEN .... do something ... ENDIF IF GLOB_SCALE=100 THEN .... do something ... ENDIF IF GLOB_SCALE=20 THEN .... do something ... ENDIF (Old symbol: A_ --> IF A_=250 THEN ..)
Does anyone know how to make the Symbol text "P" editable string text, and have its own parameter. Or even better reference it from the models classification and properties tab ?
I think the point Pat was trying to get across is that unlike traditionally scripted elements the majority came from geometry saved as an object. He then demonstrates the method of adding scripting to the object to make it more usable.
Amazing solution!
Pat demonstrates some good workflows in this session!
great tutorial! thanks!
You're welcome!
it would be nice to have more video of GDL scripting use cases to encourage us to enter this world thank you very much for all these shares
I agree. There is a lot of benefits in learning how to create objects and their benefits in creating efficient workflow.
I wonder if you could save the object as a lamp, so you can use it with the lamp tool!
Also, the 2d symbol needs to scale up or down according to the scale of the drawing and I wonder how would that be done!
You could save it as a lamp, yes, but in that form it will not have an IES file attached to it so you can use it for accurate lighting in renders.
With regards to scaleable symbols I would actually question the need for this, as in practice you would have a single scale in which you would deliver lighting/electrical drawings. People that want that flexibility could implement a 2D script into their objects to adjust dependant on scale.
IF GLOB_SCALE=250 THEN
.... do something ...
ENDIF
IF GLOB_SCALE=100 THEN
.... do something ...
ENDIF
IF GLOB_SCALE=20 THEN
.... do something ...
ENDIF
(Old symbol: A_ --> IF A_=250 THEN ..)
Does anyone know how to make the Symbol text "P" editable string text, and have its own parameter. Or even better reference it from the models classification and properties tab ?
No script gdl...scripts gdl
I think the point Pat was trying to get across is that unlike traditionally scripted elements the majority came from geometry saved as an object. He then demonstrates the method of adding scripting to the object to make it more usable.