lordrambo
|
  |
| Joined: 16 Jun 2009 |
| Total Posts: 20628 |
|
|
| 03 Jun 2013 01:55 PM |
| I want to get the picture from a hat, but I'm not interested in saving the picture then uploading it because this is inefficient. Anyone know how? |
|
|
| Report Abuse |
|
|
johnhugh
|
  |
| Joined: 26 Mar 2009 |
| Total Posts: 1971 |
|
|
| 03 Jun 2013 01:57 PM |
| I have no clue, but you could always just deal with the 3D model by insertion? |
|
|
| Report Abuse |
|
|
magnalite
|
  |
| Joined: 18 Oct 2009 |
| Total Posts: 2467 |
|
|
| 03 Jun 2013 02:11 PM |
| What do you meant the picture? The texture? |
|
|
| Report Abuse |
|
|
lordrambo
|
  |
| Joined: 16 Jun 2009 |
| Total Posts: 20628 |
|
|
| 03 Jun 2013 02:20 PM |
No, I said that picture. I was quite clear with giving you an example of the inefficient way I was using before.
If you look at a hat in the catalog you can see the picture of the hat. I want to get that picture, understand?
Nothing to do with meshes or textures.
~ The ATR Fishie ~ |
|
|
| Report Abuse |
|
|
magnalite
|
  |
| Joined: 18 Oct 2009 |
| Total Posts: 2467 |
|
|
| 03 Jun 2013 02:22 PM |
| I doubt it. Roblox only lets you access the internet resources through their api (such as loadAsset) |
|
|
| Report Abuse |
|
|
getkoed2
|
  |
| Joined: 11 Apr 2010 |
| Total Posts: 1144 |
|
|
| 03 Jun 2013 02:22 PM |
You did not have to answer with such rudeness.
I guess you can get it with
game:GetService("MarketplaceService"):GetProductInfo(111111) |
|
|
| Report Abuse |
|
|
magnalite
|
  |
| Joined: 18 Oct 2009 |
| Total Posts: 2467 |
|
| |
|
getkoed2
|
  |
| Joined: 11 Apr 2010 |
| Total Posts: 1144 |
|
|
| 03 Jun 2013 02:24 PM |
Yes, it is
http://wiki.roblox.com/index.php/GetProductInfo_(Method) |
|
|
| Report Abuse |
|
|
lordrambo
|
  |
| Joined: 16 Jun 2009 |
| Total Posts: 20628 |
|
|
| 03 Jun 2013 02:25 PM |
@get Thanks I'll look into it
On another note, people feel the need to post on my threads when they have no clue what they are talking about all the time. If they take the time to read what I actually said, they wouldn't say what they say. Yesterday I asked if anyone knew the script that builds terrain for you out of triangles and someone asked me if I meant CFrame.
~ The ATR Fishie ~ |
|
|
| Report Abuse |
|
|
magnalite
|
  |
| Joined: 18 Oct 2009 |
| Total Posts: 2467 |
|
|
| 03 Jun 2013 02:26 PM |
| -.- "Returns a table"... WHATS IN THE TABLE!?!! |
|
|
| Report Abuse |
|
|
velibor
|
  |
| Joined: 24 Nov 2009 |
| Total Posts: 1003 |
|
| |
|
getkoed2
|
  |
| Joined: 11 Apr 2010 |
| Total Posts: 1144 |
|
|
| 03 Jun 2013 02:31 PM |
@magna
I think the price, description, name, etc... Not sure if it contains the picture. You could go through the table and see what you get.
It might be a JSON table, so
local info = game:GetService("MarketplaceService"):GetProductInfo(111111) info = assert(LoadLibrary("RbxUtility"):DecodeJSON(info)) -- if it is JSON for i = 1, #info do print(info[i]) end
I guess |
|
|
| Report Abuse |
|
|
lordrambo
|
  |
| Joined: 16 Jun 2009 |
| Total Posts: 20628 |
|
|
| 03 Jun 2013 02:34 PM |
I saw someone getting the picture of a model. It is in JSON.
~ The ATR Fishie ~ |
|
|
| Report Abuse |
|
|
lordrambo
|
  |
| Joined: 16 Jun 2009 |
| Total Posts: 20628 |
|
|
| 03 Jun 2013 02:38 PM |
Line two breaks. Assertion failed?
~ The ATR Fishie ~ |
|
|
| Report Abuse |
|
|
magnalite
|
  |
| Joined: 18 Oct 2009 |
| Total Posts: 2467 |
|
|
| 03 Jun 2013 03:06 PM |
local info = game:GetService("MarketplaceService"):GetProductInfo(27112438) for k,v in pairs(info) do print(tostring(k) .. " : " .. tostring(v)) end
Sadly does not contain the picture ): |
|
|
| Report Abuse |
|
|