Getting the index of inline defined material.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-05-04 09:29 PM
I have an object that have an inline defines material.
But it happens that I need the index of that inline defined material so that I can use it with tube{2} command, since that when that material name was called (either by scripting it's name or by the a ind(material, inline_defined_material) ) didn't work, but with other loaded material it worked just fine.
How should I proceed ?


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-05-04 11:38 PM
With IND (), only materials that are globally available and therefore have an internal index can be queried. Locally defined materials provide the index -1, so not available.
GDL object creation: b-prisma.de

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-05-05 03:08 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-05-05 05:10 PM
Fun fact is that the inability of using inline materials comes from inability of recognizing the negative index values...yes the inline defined attributes get negative indexes.
Piotr

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-05-07 01:08 AM
Well I tried two ways, first by putting the name of the inline material name and the second by trying to get it's index using IND().
Both have failed.
The third way didn't produce an error code, but it became transparent.
So how can I use inline defined material in tube{2} command ??


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-05-07 01:27 PM
Please ask the Grapfisoft GDL experts in the forum on gdl.graphisoft.com
GDL object creation: b-prisma.de

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-05-07 11:29 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-05-12 06:51 PM
(of material).
Of course You have to have at least 2 inline defined materials.
Why not -1: well it looks that even the commands not working with inline materials do actually work with -1 (the first defined inline)
So if Your object neeeds 1 (only one) inline defined material - it will probably work with all even the older commands.
Piotr

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-05-15 07:29 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-05-18 05:08 PM
waiting for {3} ....
Piotr