thanx a lot. perfect-:)
Latest posts made by artmusicstudio
-
SKP 2023 - german translation
hello,
can anyone confirm the headline of the ruby-console
titeled"koenigsblau" ?
thanx
stan
-
Ruby . - on key now - flags problem
hello,
i face a seldom problem:
in skp 2021
onkeydown produces
key 38 flag 328
key 40 flag 336
on the same notebook with same keyboard (parallel installation)
sketchup 2023 produces flags 0 for both keys.
is there any logical explanation for this ?
thanx alot!
stan
-
RE: Plugin test version
hi rich,
thanx for this, the dev tools are accessible.could you please activate the tools also for my new account, user: areal3d.
i would like to run the plugin under this label.thank you very much.
stan
-
Plugin test version
hello,
i am working on a small ifc-viewer. is it allowed to put a download link here for someone, who would like to make some testing?
thanx
stan -
Working with ifc-attributes
hello,
i have to dive ibnto bim and ifc-parameters.i must confess, that i cnnot find the correct parameters in the compo-instance oder definitions in the ruby-api.
so for the start
if i iterate thru comp.-instances in the model,
is there a way for examlple to
-read out a table of all existing assigned (manually in the components in sketchup or imported)
-edit them (for example changing some letters)
-
and write them again back into attributes?
-
and eventually generate a new attribute with a new value ?
thanx for helping in advance.
stan
edit:
i found out, that the ifc-attributes are similar like other attributes dictionaries, so i could read them out bydictionaries = mycompo.attribute_dictionaries # Iterates through all dictionaries and prints to screen. dictionaries.each { |dictionary| puts dictionary.name } puts "" attrdict = mycompo.attribute_dictionaries['dynamic_attributes'] attrdict.each_pair { | key, value | puts "#{key} = #{value}" }
-
-
RE: Section plane in page
@tig said:
A
page
does not 'have' theactive_section_plane
.
That belongs to themodel.active_entities
as.active_section_plane
So you do need to make thepage
[scene] in questionmodel.pages.selected_page=
and then check the active section-plane details in themodel.active_entities
...HI TIG,
yes, thanx a lot, i am at this point, too, i think,
and i could iterate thru all pages (make the active one after another), with view.refresh off, maybe,i just was hoping, that there is a hidden property for an active section.
so the conclusion is:
the page (scene) stores the active section - but there is no way to retrieve it directly by api at the moment
thanx a lot again
stan -
Section plane in page
hello,
i studied the api, but cannot find a way toretrieve the active section plane of a page
without making the page an active page (means only by iteration thru pages and getting the corresponding section-plane).
is that possible?
thanx a lot for helping !
stan -
Duplicate Material (in materials) with correct texture API
hello,
i have a small script, which- takes the material from a selected face
- creates same material as copy in "materials" with a indexed name
- copy includes the texture of the source material
BUT
my problem is, that the texture in the copied material is beeing reset to original size (although adjusted manually in the material section).
is it possible to retrieve the texture exctly and asign it again to the indexed material?
i studied the texture section and can get width/height (original size) an maybe also uv,
but i do not find a way to aply it again to a new material.thanx for any tip!
stan
edit: just found a way:
- create new material
- retrieve path of source-material-texture
- load it directly ( material.texture = path)
- assign [tw,th] from source-material....
it works this way around