Sorry about that. Ive filled in the profile. Ive fixed the code running issue now but i cant seem to find an answer on the web for my other query. I know its completely possible to force a dialog with only a sketchup v8 file as the sole save option or a DWG import as the only option but the snippets in the documentation give little help unless you really know what youre doing.
Posts
-
RE: Rusty with Ruby. Import help needed.
-
Rusty with Ruby. Import help needed.
Hi, I used to dabble in a bit of ruby scripting about five years ago but its all disappeared from my memory and im stuck on something im sure is incredibly easy.
I basically want to add a button the the maon toolbar that simply runs the built in DWG import (Pro obviously) but the documentation on the sketchup site doesnt seem as comprehensive as it once was.
Can anyone help?Id also like to add a button that saves only sketchup 8 files. Its simple but the code snippets i have gathered from my previous scripts dont seem to work properly anymore and i cant figure out for the life of me why my code isnt running when the buttons are pressed.
Thanks
Jack -
Photomatch issues
Hi, ive been using sketchup for about 7 years and ive never used the photomatch tool before. I began using it a few weeks ago but ive always run into the same issue with the axis alignment. i line up both sets of red and green alignment bar things but the blue axis never correctly lines up despite the red and green axis being completely correct. Is there a way to manually adjust the blue axis? i assume it has something to do with the FOV of the image distorting the perspective?
Any help would be appreciated.
Thanks
Jack -
RE: Create an entirely custom toolbar that loads ruby plugins?
@thomthom said:
It would help if you posted the syntax error you get. It includes indication to where in the script you have errors.
And when you post code snippets, please wrap it [code] tags in order to preserve formatting and ease of reading.
Hey sorry i edited my post before i saw yours because i found a snippet that i didnt include and i thought it best just to ask someone who knows what theyre doing
-
RE: Create an entirely custom toolbar that loads ruby plugins?
Hi, looking through the script it seems it already has the polymesh.count_polys functionality.
I dont mean to be a pain but is there any chance you could take a look at the export script andshow me what i need to do to stop it from exporting and only output a message box with the poly count in it?I know its a big ask and if you cant its fine but it would be a huge help for me.Thanks again
JP
-
RE: Create an entirely custom toolbar that loads ruby plugins?
Hi, thanks for the reply, ive taken a look at that and im well on my way! along with using existing plugins ive managed to get a bit of my toolbar working ive never programmed ruby before but i have programmed in other languages.Thanks for the information.
I would also like to ask for help on another topic.
I have an exporter that when it has finished exporting tells me the poly count of a model.
see attatchmentI would like to alter this plugin to just show the polycount after all of its calculations and not export the model to a file. Could someone take a look at this plugin and tell me if its possible?
Thanks
JP
-
Create an entirely custom toolbar that loads ruby plugins?
Hi, Im trying to find out whether its possibvle to make a toolbar that has custom buttons with custom graphics that allow things such as importing as a mesh, loading an existing ruby plugin etc. Is this possible? How would i go about it?
Thanks
JP