Need help about scatter from Maya to standalone

Generic forum to discuss Octane Render, post ideas and suggest improvements.
Forum rules
Please add your OS and Hardware Configuration in your signature, it makes it easier for us to help you analyze problems. Example: Win 7 64 | Geforce GTX680 | i7 3770 | 16GB
tchoa
Licensed Customer
Posts: 189
Joined: Thu Jul 01, 2010 12:33 pm
Location: Montpellier

Hi there,

As I was asked by ElBloko, I Just wanted to put here the basic usage of my old python script : octaneInstancer.py
Just run those lines to show the UI :

Code: Select all

import octaneInstancer
octaneInstancer.ui()
The first button converts selected instancer node to regular instanced meshes.
Second converts selected mesh (and all instances) to instancer node.
And the last one exports .csv files for octane from selected instancers nodes.
The files are splitted regarding each object connected to the instancer.
You just have to select/save the directory where you want to save the files through the maybe confusing dialog.

Cheers
Win XP x64 | Q6600 2.40GHz | 8Go | GTX470 1.28Go // Win 7 x64 | I7 Q740 1.73Ghz | 6Go | GTX460m 1.5Go
User avatar
ElBloko
Licensed Customer
Posts: 92
Joined: Wed Jun 23, 2010 10:14 pm

Thanks tchoa,

Little issue with the script here.
I made a cylinder, instanced it a few times (pCylinder1 to pCylinder47) and tried to convert the instances to an instancer node with your tool.
It creates an array of particles (one for each instance) then a duplicate of pCylinder1 which it names pCylinder48 then the scripts breaks:

# particles: particleShape1
# Warning: Object, 'pCylinder48', skipped. It is already a child of the parent, 'world'. #
# Error: Maya command error
# Traceback (most recent call last):
# File "C:/Users/Hugues/Documents/maya/2017/scripts\octaneInstancer.py", line 191, in meshToInstancer
# cmds.parent(instance, world=True)
# RuntimeError: Maya command error #

That being said, it's easy enough to finish the process manually. Exporting to file from the instancer node works like a charm though.

Thank you again.
Renart
Licensed Customer
Posts: 70
Joined: Mon Jul 04, 2016 8:21 pm

Hello!

Nice script! Thanks for sharing!

But I can't manage to make it work with MASH, I've got this error when I try to export the instancer:

line 155: No object matches name: MASH1.idt[0].iam


The link the Python version is dead, can someone upload it please? I'm wondering if it will work with this one

Any idea?

Thanks!

[EDIT]

The correct link the the Python version is :
[url]treex.net/factocode/public/octane/octaneInstancer_py.zip[/url]
And the problem is solved! Thank you!
Post Reply

Return to “General Discussion”