thanx a lot. perfect-:)
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
-
Avoiding "Start(Makro)Ruby operation left open"
edit 180102:
what is wrong, when my undo system works perfectly (all operation back & forth) and still the ruby-logfile shows
"Start(Makro)Ruby operation left open: ........" ???
i definitely have always paired starts & commits, even with on cancel & on deselect........
edit 180101:
is it possible to integrate everything within ONMOUSEMOVE into an operation in ONLBDOWN ?
i would like to make a line following the mouse after first - point - click, unless second click is done,
but all this in 1 OPERATION.thanx for any help or example ( the line-tool-example has no operation-declared, so it does nor help here).
stan
hi,
i need a small advice.
i just started to study the sketchup-report and found out, that, althoug i commit operations, i get a reportedStart(Makro)Ruby operation left open
how can i avoid this and "close" the tool in a proper way ?
i found this text in the internet, but must confess, that i do not understand it...
.....................
When enabled (true):
* Ruby Console now warns about Ruby operations left open. Leaving
operations open is typically a bad practice. We are warning developers
that they should try to find a different way of doing what they want to do.
* Ruby Console now warns when a user tries to create a nested operation.
Starting a new operation while one is still open is a bad practice. We
would like developers to be more aware that they are doing this so that
they can fix their code.
.....................
thanx for helping!!!!
with best wishes for 2018
stan -
RE: How to release a plugin
hi dan,
thank you very much,
i was already there, but missed somehow to press the button once more after uploading, was too tired probably
it works now perfectly (and there were no problem with the code, so things develope well...)
stan -
RE: How to release a plugin
UPDATE;:
i got my ok from trimble yesterday, so now i hacve 1 first question:is it possible to let the system scramble my programm only for me for testing, first?
thanx
stan -
RE: Lumion 8 is just amazing!!
i can say, the import of skp into lumion 8 works absolutely perfect, even with huge files.
the results are really amazing.
regards
stan -
RE: How to release a plugin
hello slbaumgartner,
thanx for this info,
it is ok, if this is normal, i am just cleaning a lot in the code, so a small delay is ok.
besides that, the email-adress i got the "under review"-info cannot be used for an answer ( i tried already), so i think, waiting is the choice of the day at the moment.....
but if somebody has a direct contact email to trimble, i would be greatful for a poststan
-
RE: How to release a plugin
hello,
just to hear about your experience:
is it normal, when it takes more than 4 weeks to get aproved by trimble to become a developer?
thanx
stan -
RE: How to release a plugin
hi tig & others,
thanx for all the information,
it's helping a lot, i will go thru the process step by step,
and if my code hopefully passes the test, next steps follow......thanx a lot! i must confess, that i cannot wait, if somedy finds the ideas i had , useful for the workflow ( in my projects the ruby is a real timesaver, but thats my personal workflow, of course...)
regards
stan -
RE: How to release a plugin
Thanx so far for the informations.
so you have to send your unscrambled code thru internet to trimble and get it back scrambled !
so i can distribute it from my site (not necesserilly thru warehouse? )
i am just a bit afraid to send the code unscrabled via mail or upload.
or is the upload save enough? i am no expert for internet transfers.regards stan
-
How to release a plugin
hello developers,
i have written a collection of tools (investing a lot of time in it) and would like to distribute it in a scrambled form. maybe someone has experience or informations to following basic questions:-
would you recommend using the 'old' rbs scramble tool? or is it not safe? the advantage is, that sketchup 15 users can also use the plugin.
-
is it better to go thru trimble's development system and let ot scramble there (then only for skp 16+.)?
-
if so, is it safe to send unscrambled ruby code to trimble thru internet? i reaaly invested lot of time and would like to keep control ......
-is there any way to get in contact with trimble? i tried to apply as developer. for me it is not clear, if i have to send the code first or not and would like to talk to them about different questions (safety, my own locense system etc.)
thanx for helping!
stan
-
-
RE: SKP 2017 - saving component to file via ruby
hi tig,
thanx for replying,
i just red your code and suppose, that every skp-file, you call, will be opened in the viewport and resaved as another version - correct? so it cannot be used as a background task within (under) a running sketchup session (maybe a parallel skp-session opens..... ),
have to try it out later this evening.
what is a big help for me, is the declaration <<ver=Sketchup::Model::VERSION_2016>>,
i must have missed it in the api-doc.
the rest is clear.but: so there is no way to declare the skp-version when saving a compo to a file, i guess...
thanx
stan