Page 1 of 1
Adding an Octane Scatter Node to Geo
Posted: Sat Jun 20, 2015 5:52 pm
by p3taoctane
Can I hook an octane Scatter Node and somehow plug in into a mesh and then import a csv file and plug it into the scatter node.... all within Maya???
Thanks
Forgive if this has been answered before... I have trouble finding things within the forum.
Peter
Re: Adding an Octane Scatter Node to Geo
Posted: Mon Jun 22, 2015 10:08 am
by Jolbertoquini
p3taoctane wrote:Can I hook an octane Scatter Node and somehow plug in into a mesh and then import a csv file and plug it into the scatter node.... all within Maya???
Thanks
Forgive if this has been answered before... I have trouble finding things within the forum.
Peter
Hi Pete,
You mean this option is by default just change global to scatter.
Re: Adding an Octane Scatter Node to Geo
Posted: Mon Jun 22, 2015 2:08 pm
by p3taoctane
Thanks man
I am wondering where you plug in the csv file to this scatter node though?
Thanks
Peter
Re: Adding an Octane Scatter Node to Geo
Posted: Wed Jun 24, 2015 5:23 am
by p3taoctane
Any ideas if this is doable?
JimStar??
Re: Adding an Octane Scatter Node to Geo
Posted: Wed Jun 24, 2015 9:51 pm
by TBFX
Hi Peter,
I don't think there is any way you can use a csv file to distribute instances in the maya plugin. You need to scatter or place the instances using maya's tools and then the plugin most probably creates the scatter node that the engine needs during scene translation.
The geo type scatter is just a proxy type like movable or reshapable proxy but has the advantage of only sending the geo to the card on the first frame so you don't need to re-load non animated instances per frame when rendering an animation.
I also don't understand why questions like this keep going un answered by Otoy. It's their job to provide support of this nature and it has been sadly lacking with the Maya plugin lately.
T.
Re: Adding an Octane Scatter Node to Geo
Posted: Wed Jun 24, 2015 10:07 pm
by p3taoctane
Thanks T
Appreciate how much you help out users. I am assuming Jim Star is buried with 3.0 stuff but lately he has been a little MIA.
Peter
Re: Adding an Octane Scatter Node to Geo
Posted: Wed Mar 09, 2016 4:51 pm
by Refracty
I also need to use an existing csv file inside Maya urgently.
Is there any way now to make this happen ???
Re: Adding an Octane Scatter Node to Geo
Posted: Wed Mar 09, 2016 6:46 pm
by calus
Nothing automatic in maya for cvs files.
But you can easily parse this file with a script.
Re: Adding an Octane Scatter Node to Geo
Posted: Wed Mar 09, 2016 9:31 pm
by calus
You can do something like this
{
//here write the correct path
string $filename = "c:/file.cvs";
int $fileId = `fopen $filename "r"`;
while (!`feof $fileId`)
{
string $nextLine = `fgetline $fileId`;
// tokenize the line - we should get 12 floats
string $tokens[];
tokenize $nextLine " " $tokens;
float $a = $tokens[0];
float $b = $tokens[1];
float $c = $tokens[2];
float $d = $tokens[3];
float $e = $tokens[4];
float $f = $tokens[5];
float $g = $tokens[6];
float $h = $tokens[7];
float $i = $tokens[8];
float $j = $tokens[9];
float $k = $tokens[10];
float $l = $tokens[11];
// here add the command wich will use the 12 float of the octane matrix
}
fclose $fileId;
}