sketchucation logo sketchucation
    • Login
    1. Home
    2. Pout
    3. Posts
    πŸ›£οΈ Road Profile Builder | Generate roads, curbs and pavements easily Download
    P
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 57
    • Posts 259
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: Get one specific entity out of all entities: method?

      shame there is none, would speeds up some processes.

      It was just an example. It is close to impossible to use the entity-ids as an identifier for an entity since they can change each time you open the file.

      In our case we use the (self-defined) entity-id's as a unique identifier of the entity in a database.

      posted in Developers' Forum
      P
      Pout
    • RE: Virtual builder plugin - help

      i must have missed this topic, sorry saiscience83

      To hide objects in there pre-active stage, you just delete that material.

      Let's say for example you want buildings that are going to be constructed hidden before the construction starts.

      Then you just have to delete the material 'Construction_pre' from the materials library.

      posted in Developers' Forum
      P
      Pout
    • Get one specific entity out of all entities: method?

      It's a speed question.

      For example.
      From all Sketchup entities i want that entity which has a certain entity-id

      Off course i can do this by looping all model entities and comparing the entity-id of each with the supplied entity-id. If those match then i have the solution.

      But is it not possible to let Sketchup just pick that one without looping through all of them?

      posted in Developers' Forum
      P
      Pout
    • RE: Webdialogs and Javascript void

      True, but some sites refer to it as usable in JS (which it is in fact)
      Example:
      http://www.tizag.com/javascriptT/javascriptvoid.php

      posted in Developers' Forum
      P
      Pout
    • Webdialogs and Javascript void

      I have spend a serious amount of time figuring out why some of my buttons in javascript did not work.
      It was due to the void(0) parameter which can be set.

      Example:
      <a href="JavaScript:void(0);" ondblclick="alert('Well done!')">Double Click Me!</a>

      Hope this helps anyone.

      Pout

      posted in Developers' Forum
      P
      Pout
    • RE: What do you prefer? (about a function)

      A bit like the outliner in Sketchup.
      But, instead of a list based upon hierarchy/type of entity, the Sketchup entities are organized in another way (like Building 1-level 1 slab, Building 1-Level2 slab,...)
      So if you click on the text 'Building 1-level 1' in a window it highlights those entities.

      posted in Developers' Forum
      P
      Pout
    • What do you prefer? (about a function)

      A clickable list.
      When you click on an item of the list one or more Sketchup entities are highlighted (added to the selection)

      What is easier/preferable:
      Hide all the other Sketchup entities
      or
      Leave the other Sketchup entities visible

      Extra option:
      In my opinion it would be ideal if the other entities are shown like when you enter a group for editing (they receive some kind of 'fog')
      Is this do-able?

      Thx!

      posted in Developers' Forum
      P
      Pout
    • RE: Animation export vs animation in SU

      CONFIRMED

      posted in Developers' Forum
      P
      Pout
    • RE: Information in the dictionary = huge filesize

      i don't think there is a bug since i can easily read the data from the dictionary.
      I don't have a example at hand (since they are all way to big)
      But this is what is added to each entity :

      e.set_attribute 'libraryname', 'suid', variable (number)
      e.set_attribute 'libraryname', 'mat_or', name of the original material (text)
      when a face;
      e.set_attribute 'libraryname', 'matback_or', name of the original material (text)
      e.set_attribute 'libraryname', 'typestatus', name of a material (text)
      
      posted in Developers' Forum
      P
      Pout
    • RE: Information in the dictionary = huge filesize

      the amount of entities is alot: 350K
      the data is simple:
      the name of the original color of the entity (like listed in the materials list)
      and one other short piece of text

      posted in Developers' Forum
      P
      Pout
    • Information in the dictionary = huge filesize

      When adding information in the dictionary of Sketchup entities the filesize is growing very fast.
      I have added information to all entities of a 25Mb model and this results in a 75Mb model...

      Does Su not handle well that information or is this normal?

      posted in Developers' Forum
      P
      Pout
    • RE: Inputbox dropdown is not scrollable

      @tig said:

      Alternatively use a webdialog - but that's another story... πŸ˜‰

      Owkee, thx.
      That's the path i'll take

      posted in Developers' Forum
      P
      Pout
    • RE: Animation export vs animation in SU

      Can someone confirm this?
      I have an observer attached to my scenes which changes things in the scenes when the scenetab is clicked of the secen is selected in the scene-window.
      Now when i do Export-->Animation the changes are not shown in the resulting video

      posted in Developers' Forum
      P
      Pout
    • Inputbox dropdown is not scrollable

      I have an dropdown inputbox in Sketchup which contains a lot of values.

      It is created like this:

      list=_readable_milestones.join("|") dropdown=[list] prompts=["Milestones: "] #set the initial value in the dropdown list to the first date values=[_readable_milestones[0]] #show the selection window results= UI.inputbox prompts, values, dropdown, "Select a Milestone"

      The problem is that the dropdown box does not show an arrow or anything so i can scroll in it.
      Is this a common problem or is there somthing wrong with my script?

      regards

      posted in Developers' Forum
      P
      Pout
    • RE: [Plugin] Material Tools

      great! Thx!

      posted in Plugins
      P
      Pout
    • RE: [Plugin] Remove group materials, leave geometry material

      is there an opposite of this plugin?
      one that just keeps the group/component materials but deletes the geometry materials inside it?

      regards

      posted in Plugins
      P
      Pout
    • RE: Objets controlled by a webpage

      maybe this can be interesting for you:
      http://www.modelur.com/home

      besides that, i don't know if it is possible to load a php instead of a html file in a webdialog?
      If so, you can get the data from a database with php and send it to Sketchup with javascript

      posted in Developers' Forum
      P
      Pout
    • RE: Where lies the bug?

      we had a similar thingie with rotation an object in AutoCAD and then exporting it to VRML.
      I see if i can get a descent answer from a developer

      posted in Developers' Forum
      P
      Pout
    • RE: Cancel Ruby script

      @jim said:

      Yes, that is right. The time is in seconds, and the script will stop if it time out.

      Do have a particular script in mind?

      Not specific yet.
      The global idea is that you can just hit a button (in a webdialog or in Sketchup itself) that immediately stops the ongoing script (like you said probably with the start and end_operation method)
      If I understand your idea correctly, you will use an external button that will trigger the timeout, that one will countdown from 5 seconds and then execute the end_operation function?

      With your idea i did some tests. The problem is i can't hit anything, not in a webdialog, nor in sketchup itself.
      I have another function that is build like this:

      execute script/start a timer
      the timer checks each 2 seconds if the script has been executed
      if so: execute the script again with different parametres
      now like that i sometimes do have the possibility to hit a stop button i created (after each loop).

      Here is the script:

      def COMMON.play_timeintervallist #Automatically plays the whole Time Interval list
      	# set the play status to 1
      	$playing=1
      	#go forth one milestone to initiate the movie
      	COMMON.milestones_forward
      	#execute the milestones_forward command each 2 seconds
      	$playertimer=UI.start_timer(2, true) { 
      		# first check if the previous milestones forward has finished, if so, go to the next milestone, continue counting till it is finished.
      		if $milestones_forward_exe==1
      			COMMON.milestones_forward
      		end
      		#stop the timer when $selected_delphidate= last date in milestoneslist
      		if $selected_delphidate==$milestones[-1][1]
      			COMMON.stop_timeintervallist
      		end
      	}
      end
      #--------------------------------------------------------------------------------------------
      def COMMON.stop_timeintervallist #Stops the Time Interval list play
      	UI.stop_timer $playertimer
      	$playing=0
      end
      

      and a second part:

      def COMMON.milestones_forward #Milestone navigation forward
      	#not yet executed (used in COMMON.play_timeintervallist)
      	$milestones_forward_exe=0
      	#if the milestoneslist had not been generated yet
      	if $milestones == nil
      		COMMON.create_timeintervallist
      	end
      	#get the current date
      	c_date=$selected_delphidate
      	#get the next milestone
      	#loop through the milestones list and see what date is higher then c_date
      	i=0
      	while i < $milestones.size
      		#split milestones[i] in 2 dates
      		_normaldate=$milestones[i][0]
      		_delphidate=$milestones[i][1]
      		#if c_date is smaller then a milestone delphidate then this milestone is the milestone to be shown
      		if c_date < _delphidate
      			$selected_date = _normaldate
      			$selected_delphidate = _delphidate
      			CreateConnection.call
      			ShowToDate.call($selected_delphidate)
      			DestroyConnection.call
      			#flag that it is initiated from milestone selection
      			$datefrommilestone=1
      			SHOW.showdate
      			break
      		end
      		i+=1
      	end
      	#executed (used in COMMON.play_timeintervallist)
      	$milestones_forward_exe=1
      end
      

      maybe it is possible to use something simular?

      posted in Developers' Forum
      P
      Pout
    • RE: Cancel Ruby script

      Jim, i did not see the script previously.
      Doesn't the timeout function require an amount of seconds?
      So if the script is not finished within this amount of seconds it is cancelled automatically?

      posted in Developers' Forum
      P
      Pout
    • 1 / 1