Libary content

General discusson for Skatter for SketchUp

Moderator: jiminy-billy-bob

Libary content

Postby NigeC » Fri Feb 05, 2016 11:17 pm

I'm trying to add some tree's to the library, the script appears to work as I get the thumbnail, the simple proxy, the full mesh but can I hell get the mod.thea to show.

I don't have Vray but it is in the script would that cause the mod,thea not to render?
If I manually add the mod from the Thea3SU browser it works fine and also selecting it as a skatter object works


I thought it maybe script settings but it will render the full skp skattered

I've tried following how you've done the grass group structure in Thea, the only difference is with mine being exported from SU the tree parts are surfaces
0
“It’s only impossible if you stop and think about it!”
User avatar
NigeC 
 

Re: Libary content

Postby jiminy-billy-bob » Mon Feb 08, 2016 9:59 am

Could you send me the resulting library files, so I can check where the issue is?
0
User avatar
jiminy-billy-bob 
PluginStore Author
PluginStore Author
 

Re: Libary content

Postby NigeC » Mon Feb 08, 2016 10:32 am

Here you go, it just a simple tree make with the tree plugin for SU, the XFrog Maple set has a scary 117 meg skp , so I dumbed it down just incase it was a memory issue
https://dl.dropboxusercontent.com/u/265 ... katter.zip
0
“It’s only impossible if you stop and think about it!”
User avatar
NigeC 
 

Re: Libary content

Postby jiminy-billy-bob » Mon Feb 08, 2016 4:02 pm

There's nothing in your "skatter_tree_proxy.skp" that links it to "skatter_tree.mod.thea".
You need to attach an attribute to the model (which will become a component definition's attribute, when imported into another file), that links to the .mod.thea file.

Something like that in ruby :
Sketchup.active_model.set_attribute("TH4SU_Settings", "ModelPath", "SKATTER_LIBRARY_PATHskatter_tree.mod.mod.thea")

SKATTER_LIBRARY_PATH will be replaced by the Skatter's "Library" folder path (different on windows and mac), when loaded through Skatter's browser.
But you can also hardcode a path if it's different from Skatter's "Library" folder.
0
User avatar
jiminy-billy-bob 
PluginStore Author
PluginStore Author
 

Re: Libary content

Postby NigeC » Tue Feb 09, 2016 10:46 am

Still no joy.. how can I check the path is right?
Ive tried the full path as well, I have a skatter_tree.mod.thea and a .mod.mod.thea version

Code: Select all
Sketchup.active_model.set_attribute("TH4SU_Settings", "ModelPath", "SKATTER_LIBRARY_PATHskatter_tree.mod.mod.thea")

and
Code: Select all
Sketchup.active_model.set_attribute("TH4SU_Settings", "ModelPath", "C:\\ProgramData\\Skatter\\Library\\skatter_tree.mod.mod.thea")
0
“It’s only impossible if you stop and think about it!”
User avatar
NigeC 
 

Re: Libary content

Postby NigeC » Wed Feb 10, 2016 10:48 am

if your interested here the script editor, the text area will probably go its for my benefit really
Its about 60% done.. so much to do, so little time lol
1
“It’s only impossible if you stop and think about it!”
User avatar
NigeC 
 

Re: Libary content

Postby jiminy-billy-bob » Wed Feb 10, 2016 12:42 pm

This does work for me:
- Open C:\ProgramData\Skatter\Library\skatter_tree_proxy.skp
- In console : Sketchup.active_model.set_attribute("TH4SU_Settings", "ModelPath", "SKATTER_LIBRARY_PATHskatter_tree.mod.thea")
- Save and close
- Open a new file
- Open Skatter Library
- Load "skatter tree" as proxies
- Pick a surface
- Render
0
User avatar
jiminy-billy-bob 
PluginStore Author
PluginStore Author
 

Re: Libary content

Postby jiminy-billy-bob » Wed Feb 10, 2016 12:43 pm

NigeC wrote:if your interested here the script editor, the text area will probably go its for my benefit really
Its about 60% done.. so much to do, so little time lol

Looks great :)

What did you use for the UI? Qt?
0
User avatar
jiminy-billy-bob 
PluginStore Author
PluginStore Author
 

Re: Libary content

Postby NigeC » Wed Feb 10, 2016 1:25 pm

Thanks, I'll give it a try :thumb:


Yes its QT, in the past its always played nice on Mac
Its easy to do just a bit tedious lol
0
“It’s only impossible if you stop and think about it!”
User avatar
NigeC 
 

Re: Libary content

Postby NigeC » Wed Feb 10, 2016 3:27 pm

ya done it.. my bad I had a skatter saved with the same name in the custom library and it was using the proxy.skp in there which wasn't fixed, I only realized when I borrowed one of the grass proxies and proxy was still 25 meters high box so I figured I must have a rogue one somewhere

thanks for your time mate
0
“It’s only impossible if you stop and think about it!”
User avatar
NigeC 
 

Re: Libary content

Postby jiminy-billy-bob » Wed Feb 10, 2016 3:30 pm

NigeC wrote:thanks for your time mate

Anytime! Your tool will be usefull to a lot of users, so don't hesitate to solicitate me :)
0
User avatar
jiminy-billy-bob 
PluginStore Author
PluginStore Author
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Skatter

Who is online

Users browsing this forum: No registered users and 1 guest

Visit our sponsors: