Adding an Octane Scatter Node to Geo

Autodesk Maya (Plugin developed by JimStar)

Moderator: JimStar

Post Reply
p3taoctane
Licensed Customer
Posts: 1418
Joined: Mon Jan 25, 2010 12:53 am

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
Windows 7 Pro_SP 1_64 bit_48 GB Ram_Intel Xeon X5660 2.80 GHZ x2_6 580GTX_1 Quadra 4800
User avatar
Jolbertoquini
Licensed Customer
Posts: 1067
Joined: Sun Aug 31, 2014 7:08 am
Location: London
Contact:

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.
Attachments
scatter.jpg
Octane Render for Maya.
https://vimeo.com/jocg/videos
https://www.linkedin.com/in/jocgtd
http://www.hmxmedia.com/
--------------------
Join MAYA OCTANE USERS Skype discussion here :
https://join.skype.com/LXEQaqqfN15w
p3taoctane
Licensed Customer
Posts: 1418
Joined: Mon Jan 25, 2010 12:53 am

Thanks man
I am wondering where you plug in the csv file to this scatter node though?

Thanks

Peter
Windows 7 Pro_SP 1_64 bit_48 GB Ram_Intel Xeon X5660 2.80 GHZ x2_6 580GTX_1 Quadra 4800
p3taoctane
Licensed Customer
Posts: 1418
Joined: Mon Jan 25, 2010 12:53 am

Any ideas if this is doable?

JimStar??
Windows 7 Pro_SP 1_64 bit_48 GB Ram_Intel Xeon X5660 2.80 GHZ x2_6 580GTX_1 Quadra 4800
User avatar
TBFX
Licensed Customer
Posts: 501
Joined: Sun Dec 11, 2011 9:43 pm
Location: Wellington, New Zealand

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.
Win10 x64|i7-9750H 2.6 GHz|32 GB RAM | RTX2080 max Q 8GB
p3taoctane
Licensed Customer
Posts: 1418
Joined: Mon Jan 25, 2010 12:53 am

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
Windows 7 Pro_SP 1_64 bit_48 GB Ram_Intel Xeon X5660 2.80 GHZ x2_6 580GTX_1 Quadra 4800
User avatar
Refracty
Licensed Customer
Posts: 1599
Joined: Wed Dec 01, 2010 6:42 pm
Location: 3D-Visualisierung Köln
Contact:

I also need to use an existing csv file inside Maya urgently.
Is there any way now to make this happen ???
calus
Licensed Customer
Posts: 1308
Joined: Sat May 22, 2010 9:31 am
Location: Paris

Nothing automatic in maya for cvs files.
But you can easily parse this file with a script.
Pascal ANDRE
calus
Licensed Customer
Posts: 1308
Joined: Sat May 22, 2010 9:31 am
Location: Paris

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;
}
Pascal ANDRE
Post Reply

Return to “Autodesk Maya”