Forum Replies Created
SVG files are not used directly. They have to be converted to bitmap format – howto is put in my tread next to Yours.
PNG and TIFF files can have the transparent bit, so it can be used in AC UI, while JPG format do not have such feature, so the transparency will not work on it.
I made the same right click entry for the svg 2 tiff
it points to a bat file containing:
“C:\Program Files\GRAPHISOFT\LibDev Toolkit 22 (3013)\Tool\WIN\LP_XMLConverter” convertlibrary -excludesvg %1 %1_tif
it works on right click on folder and creates a folder (at the same level) with the same name +”_tif” containing the tiffs made out of svgs
I searched for that in LP_XML tool manual and could not find…:)
BTW If searching reliable tool for splitting and merging tiffs then there are few commandline image magick goods for that:
I added for right click over tiff file(winddows):
“C:\Program Files\_ImageMagick_folder_\magick.exe” convert “%1” -set filename:f “%%[t]_%%[fx:t+1]” +adjoin “%%[filename:f].tif”
for joining files put in the folder I made right click option to join tiffs from there into one outside that directory
(unfortunately I could not figure it out to do without bat file creation)
so right click goes to: “_path_to_custom_file_\joinTiff.bat” “%1”
and this bat file contains:
“C:\Program Files\_ImageMagick_folder_\magick.exe” convert %1\*.tiff %1.tiff
I needed also this option for pure bitmaps…and making one overscaled jpg does not work if there are elemenets that need to be crisp ;(
I think the macro that collects the all content and then showing it have tricked You..
if listitem containts “0” in 4th position then it will be a group line (_stout is text dfined previously – in my current scripting manner)
ui_listitem itemID, iFillListID, "", 0, "", _stOut : itemID = itemID + 1! Group Line
if it contains 1 in the same position then it will be inside the group
ui_listitem itemID, iFillListID, "gs_cont_pen", 1, "", _stOut : itemID = itemID + 1
oops…the default pen no 19 in gs_fill_pen for skylights template has tricked me…(sorry for late answer…)
There is a “quick and dirty” way to make the “all in one” surface material on anything…it may slow down the object:
The trick uses the container as in bolean operations: the last one with the smallest description ;P : CREATEGROUPWITHMATERIAL
Check the INT zone labels – they have the properties ability inside (AFIR)
If You know what is modelled (know IDs and so on) and just borrow the code: You can safely remove the group commands and all initial coordinates translations (+ del’s accoordingly)
This became way better since AC 20 (AFIR) (I had some project that was very slow because of many associative labels in 19…while I opened it by accident in newer version it worked better)
To check just open the project for testing even without library migration in 22 – maybe that would be the argument for migrating up at least the latest projects.
(I know the drawbacks in GDL, but there are also good points there)
Check the state of LABEL_HAS_POINTER fixed parameter. (look for this condition in the standard labels…so to not move the label from inserton point if no pointer as well)
OK I will answer myself.
Looks like it is wired: if GLOB_MODPAR_NAME=GLOB_ID” just worked…
So in the “previous” (first) run there must be temp parameter prepared say: TEMP_IDX where the previous state of ID is stored (can be of course empty for the start)
if (GLOB_ID#TEMP_IDX) then
will mimic the missing parameters change check.
PiotrApril 23, 2018 at 10:44 in reply to: Any way to use inline fills in SECT_FILL&SECT_ATRS #4016
The trick with MASTER_GDL I know very well…I just wanted to make a fill inside one object and use it in it only ;(
not messing around with the attributes in the project….
Seems the fill defined inline works only for 2d script – even if defined in master or 3d script – the negative values of indexes are “invisible” for SECT_FILL and so on….;(
PiotrApril 22, 2018 at 15:29 in reply to: Any way to use inline fills in SECT_FILL&SECT_ATRS #4014
I cannot see the inline fill defined in the masterscript in the fill type parameter normally…should I do some values restritcion to the parameter and set it to:
values "fill_parameter" RANGE (,0)?